OSDN Git Service

user_color_scheme_class with current_user
authorChristian Höltje <docwhat@gerf.org>
Mon, 3 Jun 2013 15:31:35 +0000 (11:31 -0400)
committerChristian Höltje <docwhat@gerf.org>
Mon, 3 Jun 2013 15:39:46 +0000 (11:39 -0400)
commit336750c916498e99505f593067d4eeadccb3c261
tree43d6125b1d1efe1326ab9be8de4aafe8ea28df78
parent0447c731ba392641145ac53cb8c50fab5392cda7
user_color_scheme_class with current_user

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
app/helpers/application_helper.rb
spec/helpers/application_helper_spec.rb