DEV: initial system tests for chat and plugins (#18881)

This is a very basic to ensure it's working and open future possible work
This commit is contained in:
Joffrey JAFFEUX
2022-11-04 15:06:24 +01:00
committed by GitHub
parent 518707c42a
commit 11f3618b80
5 changed files with 40 additions and 12 deletions

View File

@ -17,7 +17,11 @@ class CategoryChannel < ChatChannel
category.secure_group_ids.to_a.concat(staff_groups)
end
def title(_)
def title(_ = nil)
name.presence || category.name
end
def slug
title.truncate(100).parameterize
end
end