This method is deprecated or moved on the latest stable version.
The last existing version (v6.1.7.7) is shown here.
to_constant_name(desc)
public
Convert the provided const desc to a qualified constant name (as a string).
A module, class, symbol, or string may be provided.
# File activesupport/lib/active_support/dependencies.rb, line 729
def to_constant_name(desc) #:nodoc:
case desc
when String then desc.delete_prefix("::")
when Symbol then desc.to_s
when Module
real_mod_name(desc) ||
raise(ArgumentError, "Anonymous modules have no name to be referenced by")
else raise TypeError, "Not a valid constant descriptor: #{desc.inspect}"
end
end