blob: f38d5fd352261c6b1b7a0717aa71fc0b66945a28 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
module AccountExtension::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
|