From ebb109b67e3f7fd9f379d737170ab1931e2ffe40 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 24 Feb 2012 14:59:31 +0000 Subject: Rails3: scm: git: 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@8975 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/repository/git.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/repository/git.rb b/app/models/repository/git.rb index 869138ee7..6dae13e9c 100644 --- a/app/models/repository/git.rb +++ b/app/models/repository/git.rb @@ -23,7 +23,7 @@ class Repository::Git < Repository validates_presence_of :url 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 -- cgit v1.2.3