Class: Raif::Admin::ConversationsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Raif::ApplicationController
- ApplicationController
- Raif::Admin::ConversationsController
- Includes:
- Pagy::Backend
- Defined in:
- app/controllers/raif/admin/conversations_controller.rb
Instance Method Summary collapse
Methods inherited from Raif::ApplicationController
Instance Method Details
#index ⇒ Object
8 9 10 |
# File 'app/controllers/raif/admin/conversations_controller.rb', line 8 def index @pagy, @conversations = pagy(Raif::Conversation.order(created_at: :desc)) end |
#show ⇒ Object
12 13 14 |
# File 'app/controllers/raif/admin/conversations_controller.rb', line 12 def show @conversation = Raif::Conversation.find(params[:id]) end |