From 38f6533792985dac7ad790225e72252ac3d8b51c Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Sat, 18 Sep 2010 14:00:00 -0700 Subject: argument error is done for us --- actionpack/lib/action_view/helpers/form_helper.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'actionpack/lib/action_view/helpers/form_helper.rb') 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 ||= {} -- cgit v1.2.3