module Support class Ticket end end > Constantine.constantize("SupportTicket") => Support::Ticket
A railtie exists for patching ActiveSupport's implementation:
The idea was to allow more implicit definitions in a Rails app with a lot of namespace modules:
has_many :support_tickets, :class_name => "Support::Ticket"
It seems to break too much auto-loading to be useful, so I honestly can't actually recommend using this for anything right now. It's just an experiment.
Copyright (c) 2011 Jason L Perry. See LICENSE for details.