Class: Raif::Admin::ConversationsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/raif/admin/conversations_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



6
7
8
# File 'app/controllers/raif/admin/conversations_controller.rb', line 6

def index
  @pagy, @conversations = pagy(Raif::Conversation.order(Arel.sql("latest_entry_at IS NULL, latest_entry_at DESC, created_at DESC")))
end

#showObject



10
11
12
# File 'app/controllers/raif/admin/conversations_controller.rb', line 10

def show
  @conversation = Raif::Conversation.find(params[:id])
end