summaryrefslogtreecommitdiffstats
path: root/config/initializers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-12-18 13:20:19 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-12-18 13:20:19 +0000
commit5eed64b8488ac1f45537f9d8cb36a811921f7794 (patch)
tree1307dcdb545ecc5dc543d3bf765a0f796a2bf3e8 /config/initializers
parent2a0257e8af822b1e3022479b213ca4bf7d0ef903 (diff)
downloadredmine-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 'config/initializers')
-rw-r--r--config/initializers/10-patches.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/10-patches.rb b/config/initializers/10-patches.rb
index ad301d887..b4810f0fa 100644
--- a/config/initializers/10-patches.rb
+++ b/config/initializers/10-patches.rb
@@ -10,7 +10,7 @@ module ActiveRecord
include Redmine::I18n
# Translate attribute names for validation errors display
- def self.human_attribute_name(attr)
+ def self.human_attribute_name(attr, *args)
l("field_#{attr.to_s.gsub(/_id$/, '')}", :default => attr)
end
end