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