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:
Toshi MARUYAMA 2012-04-26 23:51:40 +00:00
parent bf4d779ea2
commit 6f8d7d6e76
1 changed files with 0 additions and 4 deletions

View File

@ -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)