remove Rails2 named_scope wrapper from config/initializers/10-patches.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9539 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
bf4d779ea2
commit
6f8d7d6e76
|
@ -3,10 +3,6 @@ require 'active_record'
|
|||
module ActiveRecord
|
||||
class Base
|
||||
include Redmine::I18n
|
||||
def self.named_scope(*args)
|
||||
scope(*args)
|
||||
end
|
||||
|
||||
# Translate attribute names for validation errors display
|
||||
def self.human_attribute_name(attr, *args)
|
||||
l("field_#{attr.to_s.gsub(/_id$/, '')}", :default => attr)
|
||||
|
|
Loading…
Reference in New Issue