Fixing search_field to remove object attribute from options hash [#5730 state:resolved]

Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
Aditya Sanghi
2010-09-29 18:15:36 +05:30
committed by José Valim
parent 7b0c592e38
commit 8d1df887d3

View File

@@ -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".