Skip to content

Commit

Permalink
make rubocop happy?
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarsh24 committed Feb 1, 2024
1 parent b878cab commit 9e50f90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/shimmer/form/radio_field.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def render
end

def wrapper_options
{label_method: "#{method}_#{@value.to_s.underscore}".to_sym}
{label_method: "#{method}_#{@value.to_s.underscore}"}
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/shimmer/utils/file_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def image_tag(source, **options)
options[:loading] ||= :lazy
options[:srcset] = "#{source} 1x, #{image_file_path(attachment, width: width.to_i * 2, height: height ? height.to_i * 2 : nil)} 2x" if options[:width].present?
end
super source, options
super(source, options)
end

def image_file_path(source, width: nil, height: nil)
Expand Down

0 comments on commit 9e50f90

Please sign in to comment.