From b1da0744ddef55cf323b2e770846df90b61e213b Mon Sep 17 00:00:00 2001 From: Daniel Evans Date: Sat, 1 Aug 2015 00:57:20 -0600 Subject: [PATCH] Use symbols instead of strings for #send --- lib/simple_form/form_builder.rb | 4 ++-- lib/simple_form/inputs/collection_radio_buttons_input.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/simple_form/form_builder.rb b/lib/simple_form/form_builder.rb index 559c867b..43fc8912 100644 --- a/lib/simple_form/form_builder.rb +++ b/lib/simple_form/form_builder.rb @@ -207,8 +207,8 @@ module SimpleForm 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 diff --git a/lib/simple_form/inputs/collection_radio_buttons_input.rb b/lib/simple_form/inputs/collection_radio_buttons_input.rb index b550f982..29d73dc1 100644 --- a/lib/simple_form/inputs/collection_radio_buttons_input.rb +++ b/lib/simple_form/inputs/collection_radio_buttons_input.rb @@ -6,7 +6,7 @@ module SimpleForm 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