summaryrefslogtreecommitdiff
path: root/help/lib
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-11-06 11:26:46 +0100
committerAzul <azul@leap.se>2013-11-06 11:30:33 +0100
commit24598b5c5e4df20c423ec74ea8e9df1592483c6b (patch)
tree08697724628ae443599c3c745c11757e75b40d12 /help/lib
parentebc60f3aba1ca08e454ba5e91f49905df2e5fa13 (diff)
destroy all tickets created by a user when account is destroyed
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.
Diffstat (limited to 'help/lib')
0 files changed, 0 insertions, 0 deletions