aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/configurable.rb
diff options
context:
space:
mode:
authorthedarkone <thedarkone2@gmail.com>2010-09-27 14:48:06 +0200
committerthedarkone <thedarkone2@gmail.com>2010-09-27 17:45:58 +0200
commit5a518487fe66b11b81e21dc6c31d036057a410ed (patch)
tree8b3cbece8b7af5b56d214c5e0bc19a8a6eeb4d02 /activesupport/lib/active_support/configurable.rb
parent8cda132136a766621b4c976cb1df7007d12ee6b5 (diff)
downloadrails-5a518487fe66b11b81e21dc6c31d036057a410ed.tar.gz
rails-5a518487fe66b11b81e21dc6c31d036057a410ed.tar.bz2
rails-5a518487fe66b11b81e21dc6c31d036057a410ed.zip
Try to use Hash's native #[] for speed.
Diffstat (limited to 'activesupport/lib/active_support/configurable.rb')
-rw-r--r--activesupport/lib/active_support/configurable.rb2
1 files changed, 1 insertions, 1 deletions
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