Flowdock
method

qualified_const_defined?

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: Module

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.0.0.1) is shown here.

These similar methods exist in v6.1.7.7:

qualified_const_defined?(path, search_parents=true) 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/core_ext/module/qualified_const.rb, line 29
  def qualified_const_defined?(path, search_parents=true)
    ActiveSupport::Deprecation.warn(      Module#qualified_const_defined? is deprecated in favour of the builtin      Module#const_defined? and will be removed in Rails 5.1..squish)

    ActiveSupport::QualifiedConstUtils.raise_if_absolute(path)

    ActiveSupport::QualifiedConstUtils.names(path).inject(self) do |mod, name|
      return unless mod.const_defined?(name, search_parents)
      mod.const_get(name)
    end
    return true
  end
Register or log in to add new notes.