From 5a518487fe66b11b81e21dc6c31d036057a410ed Mon Sep 17 00:00:00 2001 From: thedarkone Date: Mon, 27 Sep 2010 14:48:06 +0200 Subject: Try to use Hash's native #[] for speed. --- activesupport/lib/active_support/configurable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib/active_support/configurable.rb') diff --git a/activesupport/lib/active_support/configurable.rb b/activesupport/lib/active_support/configurable.rb index 3d91560833..1914f10669 100644 --- a/activesupport/lib/active_support/configurable.rb +++ b/activesupport/lib/active_support/configurable.rb @@ -18,7 +18,7 @@ module ActiveSupport def self.crystalize!(keys) keys.each do |key| class_eval <<-RUBY, __FILE__, __LINE__ + 1 - def #{key}; self[#{key.inspect}]; end + def #{key}; _get(#{key.inspect}); end RUBY end end -- cgit v1.2.3