Class: Motor::SendAlertsController

Inherits:
ApiBaseController show all
Defined in:
app/controllers/motor/send_alerts_controller.rb

Instance Method Summary collapse

Methods included from CurrentAbility

#current_ability

Methods included from CurrentUserMethod

#current_user

Instance Method Details

#createObject


10
11
12
13
14
# File 'app/controllers/motor/send_alerts_controller.rb', line 10

def create
  AlertsMailer.alert_email(@alert).deliver_now!

  head :ok
end