Skip to content
This repository
Browse code

Fixing search_field to remove object attribute from options hash [#5730

… state:resolved]

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
commit 3569bde28e47d351065208266a5c4a3fc7f3f8ae 1 parent f9b5f63
Aditya Sanghi authored josevalim committed
2  actionpack/lib/action_view/helpers/form_helper.rb
@@ -811,7 +811,7 @@ def search_field(object_name, method, options = {})
811 811
           options["incremental"] = true unless options.has_key?("incremental")
812 812
         end
813 813
 
814  
-        InstanceTag.new(object_name, method, self, options.delete(:object)).to_input_field_tag("search", options)
  814
+        InstanceTag.new(object_name, method, self, options.delete("object")).to_input_field_tag("search", options)
815 815
       end
816 816
 
817 817
       # Returns a text_field of type "tel".

0 notes on commit 3569bde

Please sign in to comment.
Something went wrong with that request. Please try again.