summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-01 05:07:27 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-01 05:07:27 +0000
commit30f3fea023e55c0dd4f027b34da912b06ab13060 (patch)
tree54ad195ebfb9e05ec639c6e30a283d71c8f920a1
parentc343588fa75974199faa5bcf50ae35543cf814ad (diff)
downloadredmine-30f3fea023e55c0dd4f027b34da912b06ab13060.tar.gz
redmine-30f3fea023e55c0dd4f027b34da912b06ab13060.zip
fix Redmine::Themes#scan_themes is not private
git-svn-id: http://svn.redmine.org/redmine/trunk@18578 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--.rubocop_todo.yml1
-rw-r--r--lib/redmine/themes.rb3
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