DEV: Upgrade Rails to version 7.1

---------

Co-authored-by: Jarek Radosz <jradosz@gmail.com>
This commit is contained in:
Loïc Guitaut
2024-06-20 10:33:01 +02:00
committed by Loïc Guitaut
parent 706e074e6c
commit ce00f83173
48 changed files with 495 additions and 258 deletions

View File

@@ -2,7 +2,7 @@
module Chat
class CategoryChannel < Channel
alias_attribute :category, :chatable
alias_method :category, :chatable
delegate :read_restricted?, to: :category
delegate :url, to: :chatable, prefix: true

View File

@@ -2,7 +2,7 @@
module Chat
class DirectMessageChannel < Channel
alias_attribute :direct_message, :chatable
alias_method :direct_message, :chatable
def direct_message_channel?
true

View File

@@ -183,7 +183,7 @@ RSpec.describe "Visit channel", type: :system do
context "when visiting a specific channel message ID then navigating to another channel" do
fab!(:early_message) { Fabricate(:chat_message, chat_channel: category_channel_1) }
fab!(:other_channel) do
Fabricate(:category_channel, category: category_channel_1.chatable)
Fabricate(:category_channel, chatable: category_channel_1.chatable)
end
fab!(:other_channel_message) { Fabricate(:chat_message, chat_channel: other_channel) }