aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-06-29 13:57:59 -0300
committerJosé Valim <jose.valim@gmail.com>2011-06-29 13:57:59 -0300
commitd677097eb6d49f75ef41dae2ee832d5e0a1d177d (patch)
treee7ae284537184bb7dd0c018dca0a8a18151381f8 /activesupport/lib
parentc690b7124d2f2206342d11aebb7aa3fc990046d2 (diff)
downloadrails-d677097eb6d49f75ef41dae2ee832d5e0a1d177d.tar.gz
rails-d677097eb6d49f75ef41dae2ee832d5e0a1d177d.tar.bz2
rails-d677097eb6d49f75ef41dae2ee832d5e0a1d177d.zip
Fix configurable cristalization and tests.
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/configurable.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/configurable.rb b/activesupport/lib/active_support/configurable.rb
index a94446acde..a2d2719de7 100644
--- a/activesupport/lib/active_support/configurable.rb
+++ b/activesupport/lib/active_support/configurable.rb
@@ -12,12 +12,12 @@ module ActiveSupport
class Configuration < ActiveSupport::InheritableOptions
def compile_methods!
- self.class.compile_methods!(keys.reject {|key| respond_to?(key)})
+ self.class.compile_methods!(keys)
end
# compiles reader methods so we don't have to go through method_missing
def self.compile_methods!(keys)
- keys.each do |key|
+ keys.reject { |m| method_defined?(m) }.each do |key|
class_eval <<-RUBY, __FILE__, __LINE__ + 1
def #{key}; _get(#{key.inspect}); end
RUBY