i'm caching constant models in memory, but if
i try something like
@user.type = Rails.cache.read 'types/1'
"ActiveRecord::AssociationTypeMismatch - Type(#39040660)
expected, got Type(#29355550)"
the class is the same, but the ids aren't, so rails
refuse the association. but if i enable class_cache,
like in production, everything goes well. so here
is the question: is there a way to work with this
kind of caching in development mode? thanks.
ps: there is a thread with a similar problem
at ‘http://www.ruby-forum.com/topic/101817’ but
their solution is not working for this rails