The subject asks the question.

Should child callbacks call their parents in STI design models?
Right now they don't and it was causing a headache as we needed to audit in the parent(ie: acts_as_auditable) and another plugin the child, specific to the scope of only that class(ie: acts_as_ldapable). acts_as_ldapable binds to the same callbacks as auditable, before_save, after_save, etc.

So basically the child overrided the parents callbacks and neglected to behave normally.

I submitted this ticket and patch if its any use to extend this behavior to rails, it would be much appreciated. Thanks.

http://dev.rubyonrails.org/ticket/4036

--
--
Adam Ballai <[EMAIL PROTECTED]>
Integrum Technologies, LLC
Phone: +1 602 792 1270 x 104
Mobile: +1 602 373 3072

begin:vcard
fn:Adam Ballai
n:Ballai;Adam
org:Integrum Technologies
adr:;;290 E. El Prado Court;Chandler;AZ;85225;United States of America
email;internet:[EMAIL PROTECTED]
title:Software Engineer
tel;work:602 792 1270
tel;fax:602 288 4111
tel;home:480 575 1708
tel;cell:602 373 3072
note:If you are unable to contact Adam through his main email, try [EMAIL PROTECTED]
x-mozilla-html:FALSE
url:http://www.integrumtech.com
version:2.1
end:vcard

_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to