Project

General

Profile

Patch #20300 » themes_helper.patch

3) - Ondřej Ezr, 2015-07-13 00:15

View differences:

lib/redmine/themes.rb
126 126
  end
127 127
end
128 128

  
129
module ApplicationHelper
129
module ThemesHelper
130 130
  def current_theme
131 131
    unless instance_variable_defined?(:@current_theme)
132 132
      @current_theme = Redmine::Themes.theme(Setting.ui_theme)
......
141 141
    end
142 142
  end
143 143
end
144
ActionView::Base.send(:include, ThemesHelper)
(2-2/3)