blob: 63f4873038c09c1e954264d2ccc1daafc91626f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
module AccountExtension
module Tickets
extend ActiveSupport::Concern
def destroy_with_tickets(destroy_identities=false)
Ticket.destroy_all_from(self.user)
destroy_without_tickets(destroy_identities)
end
included do
alias_method_chain :destroy, :tickets
end
end
end
|