Remove role color highlighting from custom css (#33493)
This commit is contained in:
parent
bbe9dcfade
commit
7ad44e22ed
5 changed files with 2 additions and 46 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue