Skip to content

Commit

Permalink
Fixing search_field to remove object attribute from options hash [#5730
Browse files Browse the repository at this point in the history
… state:resolved]

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information
Aditya Sanghi authored and josevalim committed Oct 2, 2010
1 parent f9b5f63 commit 3569bde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_view/helpers/form_helper.rb
Expand Up @@ -811,7 +811,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".
Expand Down

0 comments on commit 3569bde

Please sign in to comment.