aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r--activesupport/lib/active_support/dependencies.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/dependencies.rb b/activesupport/lib/active_support/dependencies.rb
index 2f1066016b..1372e71a61 100644
--- a/activesupport/lib/active_support/dependencies.rb
+++ b/activesupport/lib/active_support/dependencies.rb
@@ -542,6 +542,7 @@ module ActiveSupport #:nodoc:
key = key.name if key.respond_to?(:name)
@store[key] ||= Inflector.constantize(key)
end
+ alias :[] :get
def safe_get(key)
key = key.name if key.respond_to?(:name)