method

safe_get

Importance_0
v3.2.13 - Show latest stable - 0 notes - Class: ClassCache
safe_get(key) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# 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
Register or log in to add new notes.