diff options
author | Aditya Sanghi <asanghi@me.com> | 2010-09-29 18:15:36 +0530 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-10-02 17:48:11 +0200 |
commit | 8d1df887d32643f0aee2d71f7216ec98fdfe4fdb (patch) | |
tree | 91db1cd9c8618b07cad8ae74f0e3624750c4fb16 | |
parent | 7b0c592e38e4b1d370e04d856d245f825dfa9cfe (diff) | |
download | rails-8d1df887d32643f0aee2d71f7216ec98fdfe4fdb.tar.gz rails-8d1df887d32643f0aee2d71f7216ec98fdfe4fdb.tar.bz2 rails-8d1df887d32643f0aee2d71f7216ec98fdfe4fdb.zip |
Fixing search_field to remove object attribute from options hash [#5730 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
-rw-r--r-- | actionpack/lib/action_view/helpers/form_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb index 1836baaf12..3cd8b02bc4 100644 --- a/actionpack/lib/action_view/helpers/form_helper.rb +++ b/actionpack/lib/action_view/helpers/form_helper.rb @@ -791,7 +791,7 @@ module ActionView 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". |