class Module
def qualified_const_set(path, value)
def qualified_const_set(path, value) ActiveSupport::Deprecation.warn(<<-MESSAGE.squish) Module#qualified_const_set is deprecated in favour of the builtin Module#const_set and will be removed in Rails 5.1. MESSAGE ActiveSupport::QualifiedConstUtils.raise_if_absolute(path) const_name = path.demodulize mod_name = path.deconstantize mod = mod_name.empty? ? self : const_get(mod_name) mod.const_set(const_name, value) end