diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-09-05 17:16:15 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-09-05 17:16:15 +0000 |
commit | f41aaf5ca921adf891f103ea65735f9d48404ef0 (patch) | |
tree | 17d8dbb131061f7f9faad6015b14b554f2c362cf /app/models | |
parent | 1e4678b9aed35f6681cabed3a73c16594224d1c7 (diff) | |
download | redmine-f41aaf5ca921adf891f103ea65735f9d48404ef0.tar.gz redmine-f41aaf5ca921adf891f103ea65735f9d48404ef0.zip |
Merged r15820 (#23758).
git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@15821 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-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 8276bef34..3e46570ee 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 |