From 5e9cabcbf0af2fc64bc3a81b97e17a070008edb9 Mon Sep 17 00:00:00 2001 From: mhenrixon Date: Tue, 3 Dec 2024 09:39:29 +0200 Subject: [PATCH] fix: lint'em hard --- Gemfile | 2 +- lib/phlexy_ui/collapsible_sub_menu.rb | 2 +- lib/phlexy_ui/tab.rb | 2 +- spec/support/phlex_helpers.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index 0ddf5e3..bb94df8 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,4 @@ # frozen_string_literal: true source "https://rubygems.org" -gemspec \ No newline at end of file +gemspec diff --git a/lib/phlexy_ui/collapsible_sub_menu.rb b/lib/phlexy_ui/collapsible_sub_menu.rb index 5dce1fa..74277c4 100644 --- a/lib/phlexy_ui/collapsible_sub_menu.rb +++ b/lib/phlexy_ui/collapsible_sub_menu.rb @@ -10,7 +10,7 @@ def initialize(*, **) def view_template(&) yield(self) if block_given? - + attributes = generate_attributes(base_modifiers, options, ATTRIBUTES_MAP) generate_classes!( diff --git a/lib/phlexy_ui/tab.rb b/lib/phlexy_ui/tab.rb index c976be4..0ea7afc 100644 --- a/lib/phlexy_ui/tab.rb +++ b/lib/phlexy_ui/tab.rb @@ -10,7 +10,7 @@ def initialize(*, id: nil, **) def view_template(&) yield(self) if block_given? - + if @content render TabWithContent.new( *base_modifiers, diff --git a/spec/support/phlex_helpers.rb b/spec/support/phlex_helpers.rb index 7d72ec4..85b765b 100644 --- a/spec/support/phlex_helpers.rb +++ b/spec/support/phlex_helpers.rb @@ -15,7 +15,7 @@ module Testing module ViewHelper include Phlex::Testing::SGML - alias render render_to_string + alias_method :render, :render_to_string end end end