Class: Nuntius::Admin::MessagesController
- Inherits:
-
Nuntius::ApplicationAdminController
- Object
- Nuntius::ApplicationController
- Nuntius::ApplicationAdminController
- Nuntius::Admin::MessagesController
- Defined in:
- app/controllers/nuntius/admin/messages_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
8 9 10 11 |
# File 'app/controllers/nuntius/admin/messages_controller.rb', line 8 def index = Nuntius::Message.visible.order(created_at: :desc) = .where(template_id: params[:template_id]) if params[:template_id] end |
#resend ⇒ Object
17 18 19 20 21 |
# File 'app/controllers/nuntius/admin/messages_controller.rb', line 17 def resend = Nuntius::Message.visible.find(params[:id]) .resend respond_with , success: t(".resend_success"), error: t(".resend_error") end |
#show ⇒ Object
13 14 15 |
# File 'app/controllers/nuntius/admin/messages_controller.rb', line 13 def show = Nuntius::Message.visible.find(params[:id]) end |