search for: saved_obj

Displaying 1 result from an estimated 1 matches for "saved_obj".

2006 Jan 13
6
rails bug ? metadata lost between page invocation ?
...ill be able to help or let me know whether this is a genuine rails bug. This is a lengthy post, but please bear with me. So, I am trying to cache some data in memory, accross page invocation. I am using a simple class ''MyCache'', which simply holds a class variable ''@@saved_obj''. A problem arises when you try to put a model object (an ActiveRecord object) in @@saved_obj. If your model has ANY method (besides those in ActiveRecord::Base) , the cached object will NOT have these methods when you get the object back from the cache. Yes, that''s true. It l...