aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/form_helper.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-09-18 14:00:00 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-09-18 14:00:00 -0700
commit38f6533792985dac7ad790225e72252ac3d8b51c (patch)
treee1c1b510bc83d994b345822aeaa601a37c64c7f3 /actionpack/lib/action_view/helpers/form_helper.rb
parent1f6b0a554b945a02a08436bbd411ef95640b12ba (diff)
downloadrails-38f6533792985dac7ad790225e72252ac3d8b51c.tar.gz
rails-38f6533792985dac7ad790225e72252ac3d8b51c.tar.bz2
rails-38f6533792985dac7ad790225e72252ac3d8b51c.zip
argument error is done for us
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, 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 ||= {}