diff --git a/app/controllers/messages_controller.rb b/app/controllers/messages_controller.rb index e646fefab..fa16882f7 100644 --- a/app/controllers/messages_controller.rb +++ b/app/controllers/messages_controller.rb @@ -52,7 +52,7 @@ class MessagesController < ApplicationController @messages = @messages.visible end - @messages = @messages.order("created_on desc") + @messages = @messages.order("messages.created_on desc") @messages = @messages.page(@page).per(@page_size) end