The Ruby on Rails and ClojureScript experts

Apr 11, 2012

A workaround for Rails class loading issues where a namespaced module has the same name as a class:

How to deal with load_missing_constant ambiguous behaviour?
It happens when you name your nested models like classes or modules being visible in global scope, consider User::Ticket and Ticket. Rails somehow fallbacks to ::Ticket when including User::Ticket. I bypass this by writing require_relative ‘user/ticket’ and include User::Ticket. I know, it is not perfect but good enough for now.

Link: Separate your concerns via sevos.github.com