@@ -3,10 +3,6 require 'active_record' | |||||
3 | module ActiveRecord |
|
3 | module ActiveRecord | |
4 | class Base |
|
4 | class Base | |
5 | include Redmine::I18n |
|
5 | include Redmine::I18n | |
6 | def self.named_scope(*args) |
|
|||
7 | scope(*args) |
|
|||
8 | end |
|
|||
9 |
|
||||
10 | # Translate attribute names for validation errors display |
|
6 | # Translate attribute names for validation errors display | |
11 | def self.human_attribute_name(attr, *args) |
|
7 | def self.human_attribute_name(attr, *args) | |
12 | l("field_#{attr.to_s.gsub(/_id$/, '')}", :default => attr) |
|
8 | l("field_#{attr.to_s.gsub(/_id$/, '')}", :default => attr) |
General Comments 0
You need to be logged in to leave comments.
Login now