aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/form_helper.rb
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2010-09-24 16:07:37 -0300
committerEmilio Tagua <miloops@gmail.com>2010-09-27 11:19:23 -0300
commite7c833fca9c18807245bf1a75cbb212a626e278c (patch)
tree6f3515f46d81670c325569826a05ac93f00f628f /actionpack/lib/action_view/helpers/form_helper.rb
parent74d7664b607a7ca2770c937a832b3339d7bf8203 (diff)
downloadrails-e7c833fca9c18807245bf1a75cbb212a626e278c.tar.gz
rails-e7c833fca9c18807245bf1a75cbb212a626e278c.tar.bz2
rails-e7c833fca9c18807245bf1a75cbb212a626e278c.zip
Define @emitted_hidden_id if it doesn't exists and reuse it if it does.
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 3ebc6601e5..8bae6d2796 100644
--- a/actionpack/lib/action_view/helpers/form_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_helper.rb
@@ -1237,7 +1237,7 @@ module ActionView
end
def emitted_hidden_id?
- @emitted_hidden_id
+ @emitted_hidden_id ||= nil
end
private