diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-11-03 17:20:02 -0200 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-11-03 17:20:02 -0200 |
commit | d7ec94f66580abceffd313b943636ef113ffa662 (patch) | |
tree | 3b1a527bebf7be3023734f0250165e683a8cbd4d | |
parent | 63625388154043dd6cde755f62c095dad87ad173 (diff) | |
download | rails-d7ec94f66580abceffd313b943636ef113ffa662.tar.gz rails-d7ec94f66580abceffd313b943636ef113ffa662.tar.bz2 rails-d7ec94f66580abceffd313b943636ef113ffa662.zip |
Just initialize options with an empty hash
-rw-r--r-- | actionpack/lib/action_view/helpers/form_helper.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb index d6e175c7e8..80a872068d 100644 --- a/actionpack/lib/action_view/helpers/form_helper.rb +++ b/actionpack/lib/action_view/helpers/form_helper.rb @@ -294,10 +294,9 @@ module ActionView # # 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 |