Started again with Rails 4
[feedcatcher.git] / vendor / rails / activerecord / lib / active_record / dynamic_scope_match.rb
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 (file)
index f796ba6..0000000
+++ /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