diff options
author | Carl Lerche <carllerche@mac.com> | 2010-03-03 21:32:05 -0800 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-03-03 21:32:05 -0800 |
commit | 13a932cddcd3165792d3454009b6d07471031a2c (patch) | |
tree | ec08db8650b11d5352a20cf6b50b7e63161c11d1 | |
parent | 7dbf5c820b3454da8194e2c823cdfd3982657f03 (diff) | |
download | rails-13a932cddcd3165792d3454009b6d07471031a2c.tar.gz rails-13a932cddcd3165792d3454009b6d07471031a2c.tar.bz2 rails-13a932cddcd3165792d3454009b6d07471031a2c.zip |
Modifying configurations on the instance of a controller should not affect the class
-rw-r--r-- | actionpack/lib/abstract_controller/base.rb | 2 |
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. |