Permalink
Browse files

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...
1 parent 7b0c592 commit 8d1df887d32643f0aee2d71f7216ec98fdfe4fdb Aditya Sanghi committed with josevalim Sep 29, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/form_helper.rb
@@ -791,7 +791,7 @@ def search_field(object_name, method, options = {})
options["incremental"] = true unless options.has_key?("incremental")
end
- InstanceTag.new(object_name, method, self, options.delete(:object)).to_input_field_tag("search", options)
+ InstanceTag.new(object_name, method, self, options.delete("object")).to_input_field_tag("search", options)
end
# Returns a text_field of type "tel".

0 comments on commit 8d1df88

Please sign in to comment.