From 6c5f67cac15c43bafcd917c346cccfcf3fa5fb95 Mon Sep 17 00:00:00 2001
From: Jon Leighton <j@jonathanleighton.com>
Date: Tue, 16 Aug 2011 00:59:59 +0100
Subject: Don't refer to ActionController::Base in the wrap_parameters
 initializer - use config object instead. Cuts about 15% off the load time.
 (#734)

---
 actionpack/lib/action_controller/metal/params_wrapper.rb | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'actionpack/lib')

diff --git a/actionpack/lib/action_controller/metal/params_wrapper.rb b/actionpack/lib/action_controller/metal/params_wrapper.rb
index 2d8afc3a78..dfc4e3d72c 100644
--- a/actionpack/lib/action_controller/metal/params_wrapper.rb
+++ b/actionpack/lib/action_controller/metal/params_wrapper.rb
@@ -121,6 +121,8 @@ module ActionController
         _set_wrapper_defaults(_wrapper_options.slice(:format).merge(options), model)
       end
 
+      alias :wrap_parameters= :wrap_parameters
+
       # Sets the default wrapper key or model which will be used to determine
       # wrapper key and attribute names. Will be called automatically when the
       # module is inherited.
-- 
cgit v1.2.3