instance method get_class

Ruby on Rails 5.0.7.2

Since v5.0.7.2 Last seen in v5.0.7.2 Private — implementation detail, not part of the public API

Signature

get_class(klass)

No documentation comment.

Parameters

klass req
Source
# File actionpack/lib/action_dispatch/middleware/stack.rb, line 112
    def get_class(klass)
      if klass.is_a?(String) || klass.is_a?(Symbol)
        classcache = ActiveSupport::Dependencies::Reference
        converted_klass = classcache[klass.to_s]
        ActiveSupport::Deprecation.warn <<-eowarn
Passing strings or symbols to the middleware builder is deprecated, please change
them to actual class references.  For example:

  "#{klass}" => #{converted_klass}

        eowarn
        converted_klass
      else
        klass
      end
    end

Defined in actionpack/lib/action_dispatch/middleware/stack.rb line 112 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionDispatch::MiddlewareStack

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close