Skip to content

user_color_scheme_class with no current_user

Witrem requested to merge github/fork/docwhat/fix-user_color_scheme_class into master

Created by: docwhat

This refactors the user_color_scheme_class to use a hash with a default. This prevents problems with workers that don't have access to the current_user.

Fixes issue #2758 (closed)

The previous solution (commit 84e4cfc6) returned a number, not a string. I also added unit tests for it.

Merge request reports

Loading