From a36904c9ee855d2895ec9c11e1624eeda71c4b62 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 15 Dec 2011 13:07:32 +0000 Subject: 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 --- app/models/group.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'app/models/group.rb') 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 -- cgit v1.2.3