Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1291 from danielevans/feature/interpolated_symbols

Use symbols instead of strings for #send
  • Loading branch information...
commit eac1e0108e6c95e291c2065e7005e0cbcb4c2bac 2 parents 4166012 + b1da074
@carlosantoniodasilva carlosantoniodasilva authored
View
4 lib/simple_form/form_builder.rb
@@ -207,8 +207,8 @@ def button(type, *args, &block)
options = args.extract_options!.dup
options[:class] = [SimpleForm.button_class, options[:class]].compact
args << options
- if respond_to?("#{type}_button")
- send("#{type}_button", *args, &block)
+ if respond_to?(:"#{type}_button")
+ send(:"#{type}_button", *args, &block)
else
send(type, *args, &block)
end
View
2  lib/simple_form/inputs/collection_radio_buttons_input.rb
@@ -6,7 +6,7 @@ def input(wrapper_options = nil)
merged_input_options = merge_wrapper_options(input_html_options, wrapper_options)
- @builder.send("collection_#{input_type}",
+ @builder.send(:"collection_#{input_type}",
attribute_name, collection, value_method, label_method,
input_options, merged_input_options,
&collection_block_for_nested_boolean_style
Please sign in to comment.
Something went wrong with that request. Please try again.