aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/engines
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2009-05-28 18:41:20 -0300
committerEmilio Tagua <miloops@gmail.com>2009-05-28 18:41:20 -0300
commitc55226bac0cfac67081b01860baa61f3acbb2ca9 (patch)
treed07f143d6b60c21d7e7d183f05bdb580d0902e62 /lib/arel/engines
parentdc09a633c37ca0b214e4d1dd1572cdb9070fc38d (diff)
downloadrails-c55226bac0cfac67081b01860baa61f3acbb2ca9.tar.gz
rails-c55226bac0cfac67081b01860baa61f3acbb2ca9.tar.bz2
rails-c55226bac0cfac67081b01860baa61f3acbb2ca9.zip
Allow expressions on literal SQL fragments
Diffstat (limited to 'lib/arel/engines')
-rw-r--r--lib/arel/engines/sql/primitives.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/arel/engines/sql/primitives.rb b/lib/arel/engines/sql/primitives.rb
index bb3bed78e6..a08ca11c12 100644
--- a/lib/arel/engines/sql/primitives.rb
+++ b/lib/arel/engines/sql/primitives.rb
@@ -3,10 +3,12 @@ module Arel
def relation
nil
end
-
+
def to_sql(formatter = nil)
self
end
+
+ include Attribute::Expressions
end
class Attribute