summaryrefslogtreecommitdiffstats
path: root/app/models/group.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-12-15 13:07:32 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-12-15 13:07:32 +0000
commita36904c9ee855d2895ec9c11e1624eeda71c4b62 (patch)
tree38d1e3e2ce28a826cb5b45f266bbd3b41388de2b /app/models/group.rb
parent34087c417819dcd3edfb3dfab7e74556a3b0a020 (diff)
downloadredmine-a36904c9ee855d2895ec9c11e1624eeda71c4b62.tar.gz
redmine-a36904c9ee855d2895ec9c11e1624eeda71c4b62.zip
use same human_attribute_name logic with SCM models at group model (#9795)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8237 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/group.rb')
-rw-r--r--app/models/group.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/models/group.rb b/app/models/group.rb
index fa6b46fff..c79b98111 100644
--- a/app/models/group.rb
+++ b/app/models/group.rb
@@ -51,8 +51,12 @@ class Group < Principal
end
end
- def self.human_attribute_name(attribute_key_name, *args)
- attribute_key_name == 'lastname' ? l(:field_name) : super
+ def self.human_attribute_name(attribute_key_name)
+ attr_name = attribute_key_name
+ if attr_name == 'lastname'
+ attr_name = "name"
+ end
+ super(attr_name)
end
private