Method: ActiveSupport::Dependencies::ClassCache#safe_get
- Defined in:
- lib/active_support/dependencies.rb
#safe_get(key) ⇒ Object
586 587 588 589 |
# File '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 |