diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-09-05 16:22:46 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-09-05 16:22:46 +0000 |
commit | e50b066cb1b7f7355b29024cbc71d5165e25bda2 (patch) | |
tree | ffb3f431e5b43ffc27f273db2ba13e36f90f07a8 /app/models/repository.rb | |
parent | 45a0daa16a140d2d41a114e2fc2270a6fa688c93 (diff) | |
download | redmine-e50b066cb1b7f7355b29024cbc71d5165e25bda2.tar.gz redmine-e50b066cb1b7f7355b29024cbc71d5165e25bda2.zip |
"Cvs".classify => "Cv" (#23758).
git-svn-id: http://svn.redmine.org/redmine/trunk@15820 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/repository.rb')
-rw-r--r-- | app/models/repository.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb index 6da088541..0a04b58e8 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -367,7 +367,7 @@ class Repository < ActiveRecord::Base end def self.repository_class(class_name) - class_name = class_name.to_s.classify + class_name = class_name.to_s.camelize if Redmine::Scm::Base.all.include?(class_name) "Repository::#{class_name}".constantize end |