diff options
author | David Gay <david@davidgay.org> | 2021-07-07 22:32:07 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-07-07 22:32:07 -0400 |
commit | d373e5b22925cc8078628e22964d62ae9634e603 (patch) | |
tree | f99b6c310d0ced541be0b009287a7571fbb89743 /app | |
parent | 2ee5626a7cfcd6ccf5de84227f418e09c4e873d3 (diff) |
Actually fix chat history
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/chat_messages_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/chat_messages_controller.rb b/app/controllers/chat_messages_controller.rb index adb73ce..b99e2c0 100644 --- a/app/controllers/chat_messages_controller.rb +++ b/app/controllers/chat_messages_controller.rb @@ -1,6 +1,6 @@ class ChatMessagesController < ApplicationController def index - @chat_messages = ChatMessage.order(created_at: :asc).limit(1_000).reverse + @chat_messages = ChatMessage.order(created_at: :desc).limit(1_000) end def list |