From 9eddc8544417323dcd8460026027c3359b2ad717 Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Thu, 4 Mar 2010 00:52:10 -0800 Subject: Add a method for configuring abstract controllers --- actionpack/lib/abstract_controller/base.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'actionpack') 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 -- cgit v1.2.3