spree/spree — Issue #1018: uninitialized constant Preferences::Preferable::Preferences
Author: ScotterC
Created: 2012-01-24 17:56:47+00:00
State: open

Been working the new preference model into my app and I'm coming across a bizarre behavior. When preference_store gets called in the Preferable module, every now and then I'll get this self referential uninitialized constant Preferences::Preferable::Preferences. The moment I call Preferences::Store.instance again it works fine. I'm having a really hard time tracing this down.

begin
Preferences::Store.instance
rescue NameError #uninitialized constant Preferences::Preferable::Preferences
Preferences::Store.instance
end

I've gotten by with the above patch but it seems very unnecessary. I'm using is memcached with the dalli store.