When I do Marshal.load, and the data includes AR classes, it gives me an
undefined class/module error along with the AR class name.
If I require the model files right before calling Marshal.load, it will
work fine. I don''t want to be requiring the AR models everytime I call
Marshal.load.
Whats confusing is that if I do any kind of AR actions/methods (i.e.
Model.find), it will work fine without having to require the models
again.
Why do I have to re-require the AR models if I Marshal.load the AR
object?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---