Problem caching Model instances on a constant in Rails

at first looks like the old problem of rails reloading
the classes and not recognizing the objects in memory
anymore. try set "config.cache_classes" to true in your
development.rb file or run in production mode.