diff options
Diffstat (limited to 'lib/arel/engines/sql/primitives.rb')
-rw-r--r-- | lib/arel/engines/sql/primitives.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/arel/engines/sql/primitives.rb b/lib/arel/engines/sql/primitives.rb index f2e8e8dabe..bb3bed78e6 100644 --- a/lib/arel/engines/sql/primitives.rb +++ b/lib/arel/engines/sql/primitives.rb @@ -1,4 +1,14 @@ module Arel + class SqlLiteral < String + def relation + nil + end + + def to_sql(formatter = nil) + self + end + end + class Attribute def column original_relation.column_for(self) |