Class: Admin::EmailsController
- Inherits:
-
BaseController
- Object
- BaseController
- Admin::EmailsController
- Defined in:
- app/controllers/admin/emails_controller.rb
Instance Method Summary collapse
Instance Method Details
#deliver ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'app/controllers/admin/emails_controller.rb', line 9 def deliver @email = object sent, count = @email.deliver! if sent flash[:notice] = t('delivery_success', count) else flash[:error] = t('delivery_failed', count) end redirect_to admin_email_path(@email) end |