]> source.dussan.org Git - redmine.git/commitdiff
remove Rails2 named_scope wrapper from config/initializers/10-patches.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 26 Apr 2012 23:51:40 +0000 (23:51 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 26 Apr 2012 23:51:40 +0000 (23:51 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9539 e93f8b46-1217-0410-a6f0-8f06a7374b81

config/initializers/10-patches.rb

index ea353c49d055d9c7db06644559f04a8e881bbeff..ea11311baff54740a1e89cb299084b0a460ff96d 100644 (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)