Mercurial > hg > soundsoftware-site
comparison config/initializers/10-patches.rb @ 507:0c939c159af4 redmine-1.2
Update to Redmine 1.2.1 on 1.2-stable branch (Redmine SVN rev 6270)
author | Chris Cannam |
---|---|
date | Thu, 14 Jul 2011 10:32:19 +0100 |
parents | 051f544170fe |
children | cbb26bc654de |
comparison
equal
deleted
inserted
replaced
441:cbce1fd3b1b7 | 507:0c939c159af4 |
---|---|
5 class Base | 5 class Base |
6 include Redmine::I18n | 6 include Redmine::I18n |
7 | 7 |
8 # Translate attribute names for validation errors display | 8 # Translate attribute names for validation errors display |
9 def self.human_attribute_name(attr) | 9 def self.human_attribute_name(attr) |
10 l("field_#{attr.to_s.gsub(/_id$/, '')}") | 10 l("field_#{attr.to_s.gsub(/_id$/, '')}", :default => attr) |
11 end | 11 end |
12 end | 12 end |
13 end | 13 end |
14 | 14 |
15 module ActiveRecord | 15 module ActiveRecord |