diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-11-25 06:48:26 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2016-11-25 06:48:26 +0900 |
commit | 571c74380e228d80547135f749b5b8f6da885bc6 (patch) | |
tree | 387ddafe6863e8e68e9dc4751963c681825ab0e7 /actionview/lib | |
parent | 1b795f5f0ba01ea0a5c3b9063059ad90ead41b13 (diff) | |
download | rails-571c74380e228d80547135f749b5b8f6da885bc6.tar.gz rails-571c74380e228d80547135f749b5b8f6da885bc6.tar.bz2 rails-571c74380e228d80547135f749b5b8f6da885bc6.zip |
Fix warning: method redefined; discarding old fields
Follow up to #26976.
Diffstat (limited to 'actionview/lib')
-rw-r--r-- | actionview/lib/action_view/helpers/form_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/form_helper.rb b/actionview/lib/action_view/helpers/form_helper.rb index f1eefe1b8e..e7ea267211 100644 --- a/actionview/lib/action_view/helpers/form_helper.rb +++ b/actionview/lib/action_view/helpers/form_helper.rb @@ -1619,7 +1619,7 @@ module ActionView @index = options[:index] || options[:child_index] end - (field_helpers - [:label, :check_box, :radio_button, :fields_for, :hidden_field, :file_field]).each do |selector| + (field_helpers - [:label, :check_box, :radio_button, :fields_for, :fields, :hidden_field, :file_field]).each do |selector| class_eval <<-RUBY_EVAL, __FILE__, __LINE__ + 1 def #{selector}(method, options = {}) # def text_field(method, options = {}) @template.send( # @template.send( |