aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/form_helper.rb
diff options
context:
space:
mode:
authorAditya Sanghi <asanghi@me.com>2010-09-29 18:15:36 +0530
committerJosé Valim <jose.valim@gmail.com>2010-10-02 17:48:11 +0200
commit8d1df887d32643f0aee2d71f7216ec98fdfe4fdb (patch)
tree91db1cd9c8618b07cad8ae74f0e3624750c4fb16 /actionpack/lib/action_view/helpers/form_helper.rb
parent7b0c592e38e4b1d370e04d856d245f825dfa9cfe (diff)
downloadrails-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>
Diffstat (limited to 'actionpack/lib/action_view/helpers/form_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/form_helper.rb2
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".