diff options
-rw-r--r-- | .rubocop_todo.yml | 1 | ||||
-rw-r--r-- | lib/redmine/themes.rb | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 49bf8a628..69f85ebcc 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -606,7 +606,6 @@ Lint/UriEscapeUnescape: Lint/UselessAccessModifier: Exclude: - 'app/models/changeset.rb' - - 'lib/redmine/themes.rb' Lint/UselessAssignment: Enabled: false diff --git a/lib/redmine/themes.rb b/lib/redmine/themes.rb index 000a1e687..a85be1827 100644 --- a/lib/redmine/themes.rb +++ b/lib/redmine/themes.rb @@ -132,8 +132,6 @@ module Redmine end end - private - def self.scan_themes dirs = Dir.glob("#{Rails.public_path}/themes/*").select do |f| # A theme should at least override application.css @@ -141,5 +139,6 @@ module Redmine end dirs.collect {|dir| Theme.new(dir)}.sort end + private_class_method :scan_themes end end |