Permalink
Browse files

Merge pull request #4253 from lest/remove-warnings

fix use of FormBuilder.field_helpers
  • Loading branch information...
2 parents 4d844c5 + 1c0eece commit deaa68281c3737e03227aa127646c04acaa21eb6 @josevalim josevalim committed Jan 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/form_helper.rb
@@ -1270,7 +1270,7 @@ def initialize(object_name, object, template, options, proc)
@multipart = nil
end
- (field_helpers - %w(label check_box radio_button fields_for hidden_field file_field)).each do |selector|
+ (field_helpers - [:label, :check_box, :radio_button, :fields_for, :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(

0 comments on commit deaa682

Please sign in to comment.