aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/helpers/form_helper.rb
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2013-07-02 01:54:36 +0530
committerVipul A M <vipulnsward@gmail.com>2013-07-02 02:06:39 +0530
commit38aafc037705aab2f09ec924bf634d105002e016 (patch)
tree1871478987d16f6877ea04bc7d20c4a9a3646ab0 /actionview/lib/action_view/helpers/form_helper.rb
parentcd74f0292f0e4caa13fae2b9869f5f190c081839 (diff)
downloadrails-38aafc037705aab2f09ec924bf634d105002e016.tar.gz
rails-38aafc037705aab2f09ec924bf634d105002e016.tar.bz2
rails-38aafc037705aab2f09ec924bf634d105002e016.zip
Remove `FormBuilder` deprecation warning about block argument and associated tests
Diffstat (limited to 'actionview/lib/action_view/helpers/form_helper.rb')
-rw-r--r--actionview/lib/action_view/helpers/form_helper.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/actionview/lib/action_view/helpers/form_helper.rb b/actionview/lib/action_view/helpers/form_helper.rb
index f64c0ca30b..8a4830d887 100644
--- a/actionview/lib/action_view/helpers/form_helper.rb
+++ b/actionview/lib/action_view/helpers/form_helper.rb
@@ -1237,11 +1237,7 @@ module ActionView
self
end
- def initialize(object_name, object, template, options, block=nil)
- if block
- ActiveSupport::Deprecation.warn "Giving a block to FormBuilder is deprecated and has no effect anymore."
- end
-
+ def initialize(object_name, object, template, options)
@nested_child_index = {}
@object_name, @object, @template, @options = object_name, object, template, options
@default_options = @options ? @options.slice(:index, :namespace) : {}