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
This commit is contained in:
Toshi MARUYAMA 2011-12-15 13:07:32 +00:00
parent 34087c4178
commit a36904c9ee
1 changed files with 6 additions and 2 deletions

View File

@ -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