Posts [ 6 ]

Topic: Sharing code across models

I have four models which are very similar and could share about 4 functions, and I would like to not repeat myself. I cannot figure out how to implement it, though. Two are AR related, before_save and after_save, and the other two are property related, delete! and check_send_warning!. Anybody got any juicy tips?