Class: Emails::DestroyService

Inherits:
BaseService show all
Defined in:
app/services/emails/destroy_service.rb

Instance Attribute Summary

Attributes inherited from BaseService

#current_user, #params, #user

Instance Method Summary collapse

Methods inherited from BaseService

#initialize

Constructor Details

This class inherits a constructor from Emails::BaseService

Instance Method Details

#execute(email) ⇒ Object


5
6
7
# File 'app/services/emails/destroy_service.rb', line 5

def execute(email)
  email.destroy && update_secondary_emails!
end