Mat Schaffer on 14 Feb 2007 19:08:01 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PhillyOnRails] Looking for help overriding clear_old_version in acts_as_versioned


On Feb 14, 2007, at 1:58 PM, Mike Zornek wrote:
My question is: How do I override it. I added a method to my Active Record
model but I don't think it's getting called. Perhaps it's because this
clear_old_version is buried in a stack of Modules.

Speaking merely from a Ruby perspective, if acts_as_versioned is what adds that method to your model class, you'd have to override it after that call in each model class or override it in the Module function itself.


Have you considered a custom acts_as_* that could do the following?
1. acts_as_paranoid
2. acts_as_versioned
3. over-ride undesirable functionality of the first two.

Disclaimer: I've never used either of these plugins myself.
-Mat
_______________________________________________
To unsubscribe or change your settings, visit:
http://lists.phillyonrails.org/mailman/listinfo/talk