We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8400f9a commit 7dab110Copy full SHA for 7dab110
app/controllers/better_together/conversations_controller.rb
@@ -30,7 +30,7 @@ def create
30
end
31
32
def show # rubocop:todo Metrics/MethodLength
33
- @messages = @conversation.messages.order(:created_at)
+ @messages = @conversation.messages.with_rich_text_content.includes(sender: [ :string_translations ]).order(:created_at)
34
@message = @conversation.messages.build
35
36
respond_to do |format|
@@ -63,7 +63,7 @@ def conversation_params
63
64
65
def set_conversation
66
- @conversation = Conversation.find(params[:id])
+ @conversation = @conversations.find(params[:id])
67
68
69
def set_conversations
0 commit comments