Permalink
Browse files

Just initialize options with an empty hash

  • Loading branch information...
1 parent 6362538 commit d7ec94f66580abceffd313b943636ef113ffa662 @spastorino spastorino committed Nov 3, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 actionpack/lib/action_view/helpers/form_helper.rb
@@ -294,10 +294,9 @@ module FormHelper
#
# If you don't need to attach a form to a model instance, then check out
# FormTagHelper#form_tag.
- def form_for(record, options = nil, &proc)
+ def form_for(record, options = {}, &proc)
raise ArgumentError, "Missing block" unless block_given?
- options ||= {}
options[:html] ||= {}
case record

0 comments on commit d7ec94f

Please sign in to comment.