aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/sql_literal.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/sql_literal.rb')
-rw-r--r--lib/arel/sql_literal.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/arel/sql_literal.rb b/lib/arel/sql_literal.rb
new file mode 100644
index 0000000000..a98a9a058c
--- /dev/null
+++ b/lib/arel/sql_literal.rb
@@ -0,0 +1,13 @@
+module Arel
+ class SqlLiteral < String
+ def relation
+ nil
+ end
+
+ def to_sql(formatter = nil)
+ self
+ end
+
+ include Attribute::Expressions
+ end
+end