aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Lerche <carllerche@mac.com>2010-03-04 00:52:10 -0800
committerCarl Lerche <carllerche@mac.com>2010-03-04 00:52:10 -0800
commit9eddc8544417323dcd8460026027c3359b2ad717 (patch)
tree8b5e9cd953f66c4d9e019d6ac149cbbcfaaf4dfc
parent5ce25aecee062c11fc0186ae2df625ba3f013a46 (diff)
downloadrails-9eddc8544417323dcd8460026027c3359b2ad717.tar.gz
rails-9eddc8544417323dcd8460026027c3359b2ad717.tar.bz2
rails-9eddc8544417323dcd8460026027c3359b2ad717.zip
Add a method for configuring abstract controllers
-rw-r--r--actionpack/lib/abstract_controller/base.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/abstract_controller/base.rb b/actionpack/lib/abstract_controller/base.rb
index 24f3b552ba..ea88a2d24d 100644
--- a/actionpack/lib/abstract_controller/base.rb
+++ b/actionpack/lib/abstract_controller/base.rb
@@ -34,6 +34,10 @@ module AbstractController
@config ||= ActiveSupport::InheritableOptions.new(superclass < Base ? superclass.config : {})
end
+ def configure
+ yield config
+ end
+
# A list of all internal methods for a controller. This finds the first
# abstract superclass of a controller, and gets a list of all public
# instance methods on that abstract class. Public instance methods of