diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-02-24 14:58:43 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-02-24 14:58:43 +0000 |
commit | 7100ca61ba316fcb3fe000050f429c37b242f42e (patch) | |
tree | 641a76a7d7382579f1c495c2c8672f4dee4c0adb | |
parent | e5bcac15724f20b6cbeeebf11268ac07195b6e95 (diff) | |
download | redmine-7100ca61ba316fcb3fe000050f429c37b242f42e.tar.gz redmine-7100ca61ba316fcb3fe000050f429c37b242f42e.zip |
Rails3: scm: darcs: 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@8973 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/models/repository/darcs.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/repository/darcs.rb b/app/models/repository/darcs.rb index 187e4783e..9da526dbf 100644 --- a/app/models/repository/darcs.rb +++ b/app/models/repository/darcs.rb @@ -21,7 +21,7 @@ class Repository::Darcs < Repository validates_presence_of :url, :log_encoding 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 |