2
0

Remove role color highlighting from custom css (#33493)

This commit is contained in:
Matt Jankowski
2025-01-07 11:28:35 -05:00
committed by GitHub
parent bbe9dcfade
commit 7ad44e22ed
5 changed files with 2 additions and 46 deletions

View File

@@ -101,9 +101,6 @@ class UserRole < ApplicationRecord
before_validation :set_position
scope :assignable, -> { where.not(id: EVERYONE_ROLE_ID).order(position: :asc) }
scope :highlighted, -> { where(highlighted: true) }
scope :with_color, -> { where.not(color: [nil, '']) }
scope :providing_styles, -> { highlighted.with_color }
has_many :users, inverse_of: :role, foreign_key: 'role_id', dependent: :nullify