diff options
Diffstat (limited to 'lib/arel/predicates.rb')
-rw-r--r-- | lib/arel/predicates.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/arel/predicates.rb b/lib/arel/predicates.rb index f21376d4c9..a83bad3c22 100644 --- a/lib/arel/predicates.rb +++ b/lib/arel/predicates.rb @@ -3,11 +3,8 @@ module Arel end class Binary < Predicate - attr_reader :operand1, :operand2 - - def initialize(operand1, operand2) - @operand1, @operand2 = operand1, operand2 - end + attributes :operand1, :operand2 + deriving :initialize def ==(other) self.class === other and |