diff --git a/lib/shimmer/form/radio_field.rb b/lib/shimmer/form/radio_field.rb index 161e612..fe07b1a 100644 --- a/lib/shimmer/form/radio_field.rb +++ b/lib/shimmer/form/radio_field.rb @@ -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 diff --git a/lib/shimmer/utils/file_helper.rb b/lib/shimmer/utils/file_helper.rb index c3e3871..a428d18 100644 --- a/lib/shimmer/utils/file_helper.rb +++ b/lib/shimmer/utils/file_helper.rb @@ -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)