summaryrefslogtreecommitdiff
path: root/help/app/models/account_extension
AgeCommit message (Collapse)Author
2014-04-11move engines into engines directoryAzul
Also renamed help to support so it's harder to confuse it with documentation
2013-11-06destroy all tickets created by a user when account is destroyedAzul
In order to keep the users engine independent of the tickets engine i added a generic load hook to the account model. The tickets engine then monkeypatches the account destruction and destroys all tickets before the user is destroyed. The tickets are destroyed first so that even if things break there should never be tickets with an outdated user id. I would have prefered to use super over using an alias_method_chain but I have not been able to figure out a way to make account a superclass of the account extension and still refer to Account from the users engine.