method
safe_get
v3.2.13 -
Show latest stable
- Class:
ActiveSupport::Dependencies::ClassCache
safe_get(key)public
No documentation available.
# File activesupport/lib/active_support/dependencies.rb, line 558
def safe_get(key)
key = key.name if key.respond_to?(:name)
@store[key] || begin
klass = Inflector.safe_constantize(key)
@store[key] = klass
end
end