From 83c47c1962827698eb0ed58d191f121cedf89385 Mon Sep 17 00:00:00 2001 From: Keenan Brock Date: Thu, 31 Dec 2015 20:22:07 -0500 Subject: Add database specific string concatenation --- lib/arel/nodes/infix_operation.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/arel/nodes') diff --git a/lib/arel/nodes/infix_operation.rb b/lib/arel/nodes/infix_operation.rb index 3911a1e05e..a3f04da6fa 100644 --- a/lib/arel/nodes/infix_operation.rb +++ b/lib/arel/nodes/infix_operation.rb @@ -40,5 +40,10 @@ module Arel end end + class Concat < InfixOperation + def initialize left, right + super('||', left, right) + end + end end -end \ No newline at end of file +end -- cgit v1.2.3