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