summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-02-24 14:59:06 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-02-24 14:59:06 +0000
commite6916cf72f5bb4e29232bc7720863a5fefa5de8e (patch)
treee5d9017ab9a5db6f2e9d8c131ef27d2fd53dc47b /app
parent7100ca61ba316fcb3fe000050f429c37b242f42e (diff)
downloadredmine-e6916cf72f5bb4e29232bc7720863a5fefa5de8e.tar.gz
redmine-e6916cf72f5bb4e29232bc7720863a5fefa5de8e.zip
Rails3: scm: filesystem: 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@8974 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/models/repository/filesystem.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/repository/filesystem.rb b/app/models/repository/filesystem.rb
index ca8a67284..69a53505b 100644
--- a/app/models/repository/filesystem.rb
+++ b/app/models/repository/filesystem.rb
@@ -25,7 +25,7 @@ class Repository::Filesystem < 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 = "root_directory"
end