mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Upgrade Rails to version 7.1
--------- Co-authored-by: Jarek Radosz <jradosz@gmail.com>
This commit is contained in:
committed by
Loïc Guitaut
parent
7b8863fcd5
commit
8d249457e8
@@ -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
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
module Chat
|
||||
class DirectMessageChannel < Channel
|
||||
alias_attribute :direct_message, :chatable
|
||||
alias_method :direct_message, :chatable
|
||||
|
||||
def direct_message_channel?
|
||||
true
|
||||
|
||||
@@ -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) }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user