aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/relations/operations/take.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/relations/operations/take.rb')
-rw-r--r--lib/arel/relations/operations/take.rb13
1 files changed, 2 insertions, 11 deletions
diff --git a/lib/arel/relations/operations/take.rb b/lib/arel/relations/operations/take.rb
index 0a49891aee..095e430417 100644
--- a/lib/arel/relations/operations/take.rb
+++ b/lib/arel/relations/operations/take.rb
@@ -1,15 +1,6 @@
module Arel
class Take < Compound
- attr_reader :taken
-
- def initialize(relation, taken)
- @relation, @taken = relation, taken
- end
-
- def ==(other)
- Take === other and
- relation == other.relation and
- taken == other.taken
- end
+ attributes :relation, :taken
+ deriving :initialize, :==
end
end \ No newline at end of file