instance method qualified_const_get

Ruby on Rails 5.0.7.2

Since v3.2.22.5 Last seen in v5.0.7.2

Available in: v3.2.22.5 v4.0.13 v4.1.16 v4.2.11.3 v5.0.7.2

Signature

qualified_const_get(path)

No documentation comment.

Parameters

path req
Source
# File activesupport/lib/active_support/core_ext/module/qualified_const.rb, line 44
  def qualified_const_get(path)
    ActiveSupport::Deprecation.warn(<<-MESSAGE.squish)
      Module#qualified_const_get is deprecated in favour of the builtin
      Module#const_get and will be removed in Rails 5.1.
    MESSAGE

    ActiveSupport::QualifiedConstUtils.raise_if_absolute(path)

    ActiveSupport::QualifiedConstUtils.names(path).inject(self) do |mod, name|
      mod.const_get(name)
    end
  end

Defined in activesupport/lib/active_support/core_ext/module/qualified_const.rb line 44 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Module

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