summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-02-24 14:59:31 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-02-24 14:59:31 +0000
commitebb109b67e3f7fd9f379d737170ab1931e2ffe40 (patch)
treecbfb53be6da758eb6aa8d66856e92ccaf74150b1
parente6916cf72f5bb4e29232bc7720863a5fefa5de8e (diff)
downloadredmine-ebb109b67e3f7fd9f379d737170ab1931e2ffe40.tar.gz
redmine-ebb109b67e3f7fd9f379d737170ab1931e2ffe40.zip
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
-rw-r--r--app/models/repository/git.rb2
1 files changed, 1 insertions, 1 deletions
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