diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-18 14:00:00 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-18 14:00:00 -0700 |
commit | 38f6533792985dac7ad790225e72252ac3d8b51c (patch) | |
tree | e1c1b510bc83d994b345822aeaa601a37c64c7f3 /actionpack/lib/action_view | |
parent | 1f6b0a554b945a02a08436bbd411ef95640b12ba (diff) | |
download | rails-38f6533792985dac7ad790225e72252ac3d8b51c.tar.gz rails-38f6533792985dac7ad790225e72252ac3d8b51c.tar.bz2 rails-38f6533792985dac7ad790225e72252ac3d8b51c.zip |
argument error is done for us
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_helper.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb index 59d90f24f1..e62447c842 100644 --- a/actionpack/lib/action_view/helpers/form_helper.rb +++ b/actionpack/lib/action_view/helpers/form_helper.rb @@ -840,8 +840,6 @@ module ActionView private def instantiate_builder(record, record_object = nil, options = nil, &block) - raise ArgumentError, "Missing block" unless block_given? - options, record_object = record_object, nil if record_object.is_a?(Hash) options ||= {} |