summaryrefslogtreecommitdiff
path: root/engines/support/app
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-12-15 16:07:30 -0800
committerelijah <elijah@riseup.net>2014-12-15 16:07:30 -0800
commit6e15813d549fd9e56a48fd87d425fd31f37521e8 (patch)
tree730134da23e7904059c26973f856762f99f0d56d /engines/support/app
parentb59360a003af595f1552f2ce753d4d80e5cf0028 (diff)
bugfix: allow deletion of user's identities via api when user is deleted. closes #6550
Diffstat (limited to 'engines/support/app')
-rw-r--r--engines/support/app/models/account_extension/tickets.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/support/app/models/account_extension/tickets.rb b/engines/support/app/models/account_extension/tickets.rb
index f898b56..f38d5fd 100644
--- a/engines/support/app/models/account_extension/tickets.rb
+++ b/engines/support/app/models/account_extension/tickets.rb
@@ -1,9 +1,9 @@
module AccountExtension::Tickets
extend ActiveSupport::Concern
- def destroy_with_tickets
+ def destroy_with_tickets(destroy_identities=false)
Ticket.destroy_all_from(self.user)
- destroy_without_tickets
+ destroy_without_tickets(destroy_identities)
end
included do