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 @messages = Nuntius::Message.visible.order(created_at: :desc) @messages = @messages.where(template_id: params[:template_id]) if params[:template_id] end |