X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=vendor%2Frails%2Factiverecord%2Flib%2Factive_record%2Fdynamic_scope_match.rb;fp=vendor%2Frails%2Factiverecord%2Flib%2Factive_record%2Fdynamic_scope_match.rb;h=0000000000000000000000000000000000000000;hb=36d9f3351a3b4e8159279445190e2287ffdea86c;hp=f796ba669a3860a06826a5b875431f992e96364e;hpb=913cf6054b1d29b5d2f5e620304af7ee77cc1f1f;p=feedcatcher.git

diff --git a/vendor/rails/activerecord/lib/active_record/dynamic_scope_match.rb b/vendor/rails/activerecord/lib/active_record/dynamic_scope_match.rb
deleted file mode 100644
index f796ba6..0000000
--- a/vendor/rails/activerecord/lib/active_record/dynamic_scope_match.rb
+++ /dev/null
@@ -1,25 +0,0 @@
-module ActiveRecord
-  class DynamicScopeMatch
-    def self.match(method)
-      ds_match = self.new(method)
-      ds_match.scope ? ds_match : nil
-    end
-
-    def initialize(method)
-      @scope = true
-      case method.to_s
-      when /^scoped_by_([_a-zA-Z]\w*)$/
-        names = $1
-      else
-        @scope = nil
-      end
-      @attribute_names = names && names.split('_and_')
-    end
-
-    attr_reader :scope, :attribute_names
-
-    def scope?
-      !@scope.nil?
-    end
-  end
-end