search for: unfreeze_taxtree

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

2006 Jan 19
0
Problem with an Tree-like object hierarchy (ActiveRecord acts_as_tree)
...can see in the log file that its traversing all the way up to the root, but only the activation of the node called will ''stick''. speaking of ''stick'', to preserve the tree between requests I store it in the session variable and retrieve it from there: def unfreeze_taxtree if taxtree_frozen then return Marshal.load(session[:tax_tree]) else return nil end end def freeze_taxtree(tax) return session[:tax_tree] = Marshal.dump(tax) end def get_tax_from_freezer(tax_id) @@tax_tree = unfreeze_taxtree ObjectSpace._id2ref(@@tax_tree.fi...