summaryrefslogtreecommitdiffstats
path: root/app/models/repository/mercurial.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-02-24 14:59:54 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-02-24 14:59:54 +0000
commit55a8087f674b81bfc31192ce2e123108af0ea5d1 (patch)
tree61f219fbf939cc37ff3c43ac2862f8075d555615 /app/models/repository/mercurial.rb
parentebb109b67e3f7fd9f379d737170ab1931e2ffe40 (diff)
downloadredmine-55a8087f674b81bfc31192ce2e123108af0ea5d1.tar.gz
redmine-55a8087f674b81bfc31192ce2e123108af0ea5d1.zip
Rails3: scm: mercurial: use .to_s for overriding human_attribute_name parameter
On Rails 3.0.11, parameter is symbol not string in activerecord validation. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8976 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/repository/mercurial.rb')
-rw-r--r--app/models/repository/mercurial.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/repository/mercurial.rb b/app/models/repository/mercurial.rb
index 391c4466f..b2ee18445 100644
--- a/app/models/repository/mercurial.rb
+++ b/app/models/repository/mercurial.rb
@@ -30,7 +30,7 @@ class Repository::Mercurial < Repository
FETCH_AT_ONCE = 100
def self.human_attribute_name(attribute_key_name, *args)
- attr_name = attribute_key_name
+ attr_name = attribute_key_name.to_s
if attr_name == "url"
attr_name = "path_to_repository"
end