1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Use symbol consistently for operator in InfixOperation

This commit is contained in:
Ryuta Kamizono 2020-05-18 07:58:48 +09:00
parent b027288823
commit 74e826a9e9

View file

@ -43,19 +43,19 @@ module Arel # :nodoc: all
class Concat < InfixOperation class Concat < InfixOperation
def initialize(left, right) def initialize(left, right)
super("||", left, right) super(:"||", left, right)
end end
end end
class Contains < InfixOperation class Contains < InfixOperation
def initialize(left, right) def initialize(left, right)
super("@>", left, right) super(:"@>", left, right)
end end
end end
class Overlaps < InfixOperation class Overlaps < InfixOperation
def initialize(left, right) def initialize(left, right)
super("&&", left, right) super(:"&&", left, right)
end end
end end