diff options
Diffstat (limited to 'lib/arel/relations/operations/skip.rb')
-rw-r--r-- | lib/arel/relations/operations/skip.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/arel/relations/operations/skip.rb b/lib/arel/relations/operations/skip.rb new file mode 100644 index 0000000000..01ac4c7204 --- /dev/null +++ b/lib/arel/relations/operations/skip.rb @@ -0,0 +1,15 @@ +module Arel + class Skip < Compound + attr_reader :skipped + + def initialize(relation, skipped) + @relation, @skipped = relation, skipped + end + + def ==(other) + Skip === other and + relation == other.relation and + skipped == other.skipped + end + end +end
\ No newline at end of file |