Class: Webhooks::Outgoing::EndpointMailer
- Inherits:
-
ApplicationMailer
- Object
- ApplicationMailer
- Webhooks::Outgoing::EndpointMailer
- Defined in:
- app/mailers/webhooks/outgoing/endpoint_mailer.rb
Instance Method Summary collapse
Instance Method Details
#deactivated(endpoint) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 |
# File 'app/mailers/webhooks/outgoing/endpoint_mailer.rb', line 14 def deactivated(endpoint) @endpoint = endpoint email = @endpoint.team.formatted_email_address return if email.blank? set_values(@endpoint) mail( to: email, subject: I18n.t("webhooks.outgoing.endpoint_mailer.deactivated.subject", endpoint_name: @endpoint.name) ) end |
#deactivation_limit_reached(endpoint) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 |
# File 'app/mailers/webhooks/outgoing/endpoint_mailer.rb', line 2 def deactivation_limit_reached(endpoint) @endpoint = endpoint email = @endpoint.team.formatted_email_address return if email.blank? set_values(@endpoint) mail( to: email, subject: I18n.t("webhooks.outgoing.endpoint_mailer.deactivation_limit_reached.subject", endpoint_name: @endpoint.name) ) end |