From: Toshi MARUYAMA Date: Fri, 24 Feb 2012 14:59:54 +0000 (+0000) Subject: Rails3: scm: mercurial: use .to_s for overriding human_attribute_name parameter X-Git-Tag: 1.4.0~338 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=55a8087f674b81bfc31192ce2e123108af0ea5d1;p=redmine.git 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 --- 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