Skip to content

Commit

Permalink
refs #1474 compatible with redmine3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
haru committed Jul 2, 2017
1 parent b16f9ae commit ab1b5f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/theme_changer_user_patch.rb
Expand Up @@ -21,14 +21,14 @@ def self.included(base) # :nodoc:

base.class_eval do
unloadable # Send unloadable so it will not be unloaded in development

safe_attributes :theme
end

end
end

module UserPreferenceInstanceMethodsForThemeChanger

def theme
theme_setting = ThemeChangerUserSetting.find_theme_by_user_id(user.id)
return nil unless theme_setting
Expand Down

0 comments on commit ab1b5f4

Please sign in to comment.