Add scope providing_styles to UserRole (#29286)

This commit is contained in:
Matt Jankowski authored and GitHub committed 2024-02-20 09:18:05 +00:00
1 parent 5d9d0d174a
commit 785e2f9399
2 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -16,6 +16,6 @@ class CustomCssController < ActionController::Base # rubocop:disable Rails/Appli
helper_method :custom_css_styles
def set_user_roles
@user_roles = UserRole.where(highlighted: true).where.not(color: [nil, ''])
@user_roles = UserRole.providing_styles
end
end