On Mar 10, 4:33 pm, boblu <[email protected]> wrote:
> So, after re-examine, I found that I have changed Lexeme.column_names
> in another models in validation process.
> Everything goes well in development environment because in development
> environment 'config.cache_classes' is set to false.
> so every request will reload code, and Lexeme.column_names get the
> right value every time.
> But in production environment, 'config.cache_classes' is set to true,
> my app coda get loaded only once,
> so I did not notice that Lexeme.column_names has been changed in other
> process.
Yup that would do it. All i meant by the last comment was that AR has
2 eager loading strategies, as explained by that blog post of mine you
found. Glad you got to the bottom of it!
Fred
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---