aboutsummaryrefslogtreecommitdiffstats
path: root/lib/active_relation/relations/skip.rb
blob: 5973dff8b9b247eddeb15526a8861f7e686424ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module ActiveRelation
  class Skip < Compound
    attr_reader :skipped

    def initialize(relation, skipped)
      @relation, @skipped = relation, skipped
    end

    def ==(other)
      self.class  == other.class    and
      relation    == other.relation and
      skipped     == other.skipped
    end
  end
end