diff options
Diffstat (limited to 'config/initializers')
-rw-r--r-- | config/initializers/10-patches.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/config/initializers/10-patches.rb b/config/initializers/10-patches.rb index 63532b491..e01b4c2d7 100644 --- a/config/initializers/10-patches.rb +++ b/config/initializers/10-patches.rb @@ -5,8 +5,7 @@ module ActiveRecord include Redmine::I18n # Translate attribute names for validation errors display def self.human_attribute_name(attr, *args) - attr = attr.to_s.sub(/_id$/, '') - + attr = attr.to_s.sub(/_id$/, '').sub(/^.+\./, '') l("field_#{name.underscore.gsub('/', '_')}_#{attr}", :default => ["field_#{attr}".to_sym, attr]) end end |