diff options
author | Oriol Gual and Josep M. Bach <dev+oriol+txus@codegram.com> | 2011-02-28 14:31:29 +0100 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-02-28 13:30:32 -0200 |
commit | f42562f97bb791a7662fce0106a93eec211b2803 (patch) | |
tree | 99779ed409b770f3506f252fe03fd6a74ba705f5 /activesupport/lib/active_support | |
parent | a0629927b2b615a747eb223eb82e84b208d49188 (diff) | |
download | rails-f42562f97bb791a7662fce0106a93eec211b2803.tar.gz rails-f42562f97bb791a7662fce0106a93eec211b2803.tar.bz2 rails-f42562f97bb791a7662fce0106a93eec211b2803.zip |
Make ActiveSupport::Configurable work with modules
[#6486 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/configurable.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/configurable.rb b/activesupport/lib/active_support/configurable.rb index 644db0b205..be19189c04 100644 --- a/activesupport/lib/active_support/configurable.rb +++ b/activesupport/lib/active_support/configurable.rb @@ -26,7 +26,7 @@ module ActiveSupport module ClassMethods def config - @_config ||= if superclass.respond_to?(:config) + @_config ||= if respond_to?(:superclass) && superclass.respond_to?(:config) superclass.config.inheritable_copy else # create a new "anonymous" class that will host the compiled reader methods |