Permalink
Browse files

Define @emitted_hidden_id if it doesn't exists and reuse it if it does.

  • Loading branch information...
1 parent 74d7664 commit e7c833fca9c18807245bf1a75cbb212a626e278c @miloops miloops committed Sep 24, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/form_helper.rb
@@ -1237,7 +1237,7 @@ def submit(value=nil, options={})
end
def emitted_hidden_id?
- @emitted_hidden_id
+ @emitted_hidden_id ||= nil
end
private

0 comments on commit e7c833f

Please sign in to comment.