diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-18 13:20:19 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-18 13:20:19 +0000 |
commit | 5eed64b8488ac1f45537f9d8cb36a811921f7794 (patch) | |
tree | 1307dcdb545ecc5dc543d3bf765a0f796a2bf3e8 /app/models/group.rb | |
parent | 2a0257e8af822b1e3022479b213ca4bf7d0ef903 (diff) | |
download | redmine-5eed64b8488ac1f45537f9d8cb36a811921f7794.tar.gz redmine-5eed64b8488ac1f45537f9d8cb36a811921f7794.zip |
human_attribute_name accepts optional argument.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8286 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/group.rb')
-rw-r--r-- | app/models/group.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/group.rb b/app/models/group.rb index c79b98111..cd0368a5c 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -51,12 +51,12 @@ class Group < Principal end end - def self.human_attribute_name(attribute_key_name) + def self.human_attribute_name(attribute_key_name, *args) attr_name = attribute_key_name if attr_name == 'lastname' attr_name = "name" end - super(attr_name) + super(attr_name, *args) end private |