module ActiveSupport::Dependencies

def qualified_name_for(mod, name)

Returns the constant path for the provided parent and constant name.
def qualified_name_for(mod, name)
  mod_name = to_constant_name mod
  mod_name == "Object" ? name.to_s : "#{mod_name}::#{name}"
end