Improve message threads (by @paroga)

This commit is contained in:
wvengen 2016-03-04 17:24:28 +01:00
parent 673448a5ac
commit 6b32d0c960
13 changed files with 89 additions and 27 deletions

View file

@ -47,4 +47,8 @@ class MessagesController < ApplicationController
redirect_to messages_url, alert: 'Nachricht ist privat!'
end
end
def thread
@messages = Message.thread(params[:id]).order(:created_at)
end
end