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