From 6067d1620075c1c311bbae01993453cd80967804 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Mon, 27 Sep 2010 20:42:02 +0200 Subject: Call it compile_methods! and do the same on AM. --- activesupport/lib/active_support/configurable.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'activesupport/lib/active_support') diff --git a/activesupport/lib/active_support/configurable.rb b/activesupport/lib/active_support/configurable.rb index 1914f10669..58ed37b018 100644 --- a/activesupport/lib/active_support/configurable.rb +++ b/activesupport/lib/active_support/configurable.rb @@ -10,12 +10,12 @@ module ActiveSupport extend ActiveSupport::Concern class Configuration < ActiveSupport::InheritableOptions - def crystalize! - self.class.crystalize!(keys.reject {|key| respond_to?(key)}) + def compile_methods! + self.class.compile_methods!(keys.reject {|key| respond_to?(key)}) end # compiles reader methods so we don't have to go through method_missing - def self.crystalize!(keys) + def self.compile_methods!(keys) keys.each do |key| class_eval <<-RUBY, __FILE__, __LINE__ + 1 def #{key}; _get(#{key.inspect}); end -- cgit v1.2.3