aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2008-12-28 20:53:58 +0100
committerDavid Heinemeier Hansson <david@loudthinking.com>2008-12-28 20:53:58 +0100
commit0efec64520d5153e5a961f9a759883656b83bb53 (patch)
tree31bc504daa1318cb73659e7df01c8ab885e3495f /actionpack/lib/action_view
parent66ee5890c5f21995b7fe0c486547f1287afe2b55 (diff)
parenta2270ef2594b97891994848138614657363f2806 (diff)
downloadrails-0efec64520d5153e5a961f9a759883656b83bb53.tar.gz
rails-0efec64520d5153e5a961f9a759883656b83bb53.tar.bz2
rails-0efec64520d5153e5a961f9a759883656b83bb53.zip
Merge branch 'master' of git@github.com:rails/rails
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r--actionpack/lib/action_view/helpers/form_helper.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb
index 621e2946b5..a85751c657 100644
--- a/actionpack/lib/action_view/helpers/form_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_helper.rb
@@ -737,9 +737,13 @@ module ActionView
(field_helpers - %w(label check_box radio_button fields_for)).each do |selector|
src = <<-end_src
- def #{selector}(method, options = {})
- @template.send(#{selector.inspect}, @object_name, method, objectify_options(options))
- end
+ def #{selector}(method, options = {}) # def text_field(method, options = {})
+ @template.send( # @template.send(
+ #{selector.inspect}, # "text_field",
+ @object_name, # @object_name,
+ method, # method,
+ objectify_options(options)) # objectify_options(options))
+ end # end
end_src
class_eval src, __FILE__, __LINE__
end