method

qualified_const_set

Importance_0
v4.2.9 - Show latest stable - 0 notes - Class: Module
qualified_const_set(path, value) 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 44
  def qualified_const_set(path, value)
    QualifiedConstUtils.raise_if_absolute(path)

    const_name = path.demodulize
    mod_name = path.deconstantize
    mod = mod_name.empty? ? self : qualified_const_get(mod_name)
    mod.const_set(const_name, value)
  end
Register or log in to add new notes.