aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/abstract_controller
diff options
context:
space:
mode:
authorCarl Lerche <carllerche@mac.com>2010-03-03 21:32:05 -0800
committerCarl Lerche <carllerche@mac.com>2010-03-03 21:32:05 -0800
commit13a932cddcd3165792d3454009b6d07471031a2c (patch)
treeec08db8650b11d5352a20cf6b50b7e63161c11d1 /actionpack/lib/abstract_controller
parent7dbf5c820b3454da8194e2c823cdfd3982657f03 (diff)
downloadrails-13a932cddcd3165792d3454009b6d07471031a2c.tar.gz
rails-13a932cddcd3165792d3454009b6d07471031a2c.tar.bz2
rails-13a932cddcd3165792d3454009b6d07471031a2c.zip
Modifying configurations on the instance of a controller should not affect the class
Diffstat (limited to 'actionpack/lib/abstract_controller')
-rw-r--r--actionpack/lib/abstract_controller/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/abstract_controller/base.rb b/actionpack/lib/abstract_controller/base.rb
index 8e24d55ad0..24f3b552ba 100644
--- a/actionpack/lib/abstract_controller/base.rb
+++ b/actionpack/lib/abstract_controller/base.rb
@@ -102,7 +102,7 @@ module AbstractController
end
def config
- self.class.config
+ @config ||= ActiveSupport::InheritableOptions.new(self.class.config)
end
# Calls the action going through the entire action dispatch stack.