diff options
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/application_helper.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 65d03fe0ccd..4c0bbf813bd 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -124,6 +124,9 @@ module ApplicationHelper end def user_color_scheme_class + # in case we dont have current_user (ex. in mailer) + return 1 unless defined?(current_user) + case current_user.color_scheme_id when 1 then 'white' when 2 then 'black' |