aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/engines/sql/relations/utilities/compound.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/engines/sql/relations/utilities/compound.rb')
-rw-r--r--lib/arel/engines/sql/relations/utilities/compound.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/arel/engines/sql/relations/utilities/compound.rb b/lib/arel/engines/sql/relations/utilities/compound.rb
new file mode 100644
index 0000000000..f8ce4033fd
--- /dev/null
+++ b/lib/arel/engines/sql/relations/utilities/compound.rb
@@ -0,0 +1,10 @@
+module Arel
+ class Compound < Relation
+ delegate :table, :table_sql, :to => :relation
+
+ def build_query(*parts)
+ parts.compact.join("\n")
+ end
+ end
+end
+