Skip to content

Commit ea6e970

Browse files
committed
standardrb --fix
1 parent a92ec7d commit ea6e970

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

lib/generators/view_component/component/component_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class ComponentGenerator < Rails::Generators::NamedBase
2323
class_option :skip_suffix, type: :boolean, default: false
2424

2525
def create_component_file
26-
template "component.rb", File.join(component_path, class_path, "#{file_name}#{options[:skip_suffix] ? "" : "_component"}.rb")
26+
template "component.rb", File.join(component_path, class_path, "#{file_name}#{"_component" unless options[:skip_suffix]}.rb")
2727
end
2828

2929
hook_for :test_framework

lib/view_component/collection.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
module ViewComponent
66
class Collection
77
include Enumerable
8+
89
attr_reader :component
910

1011
delegate :size, to: :@collection

lib/view_component/inline_template.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
module ViewComponent # :nodoc:
44
module InlineTemplate
55
extend ActiveSupport::Concern
6+
67
Template = Struct.new(:source, :language, :path, :lineno)
78

89
class_methods do

0 commit comments

Comments
 (0)