diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-02-24 14:56:54 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-02-24 14:56:54 +0000 |
commit | a4ee104bd7e1dd4c385ab187b1093cf21378e2f1 (patch) | |
tree | da596198bc6f163a648d3f4e68e61cb1f3cf2467 /app/models/group.rb | |
parent | 1f2f32f58c8c2646a6e8ea8d8dd7ee03e537b067 (diff) | |
download | redmine-a4ee104bd7e1dd4c385ab187b1093cf21378e2f1.tar.gz redmine-a4ee104bd7e1dd4c385ab187b1093cf21378e2f1.zip |
Rails3: use .to_s for overriding human_attribute_name parameter at group model
On Rails 3.0.11, parameter is symbol not string in activerecord validation.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8969 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/group.rb')
-rw-r--r-- | app/models/group.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/group.rb b/app/models/group.rb index cd0368a5c..47ef7231a 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -52,7 +52,7 @@ class Group < Principal end def self.human_attribute_name(attribute_key_name, *args) - attr_name = attribute_key_name + attr_name = attribute_key_name.to_s if attr_name == 'lastname' attr_name = "name" end |