diff options
Diffstat (limited to 'lib/arel')
-rw-r--r-- | lib/arel/nodes.rb | 1 | ||||
-rw-r--r-- | lib/arel/nodes/sql_literal.rb | 11 | ||||
-rw-r--r-- | lib/arel/sql_literal.rb | 8 |
3 files changed, 20 insertions, 0 deletions
diff --git a/lib/arel/nodes.rb b/lib/arel/nodes.rb index 855d8cf236..07a687405f 100644 --- a/lib/arel/nodes.rb +++ b/lib/arel/nodes.rb @@ -1 +1,2 @@ require 'arel/nodes/equality' +require 'arel/nodes/sql_literal' diff --git a/lib/arel/nodes/sql_literal.rb b/lib/arel/nodes/sql_literal.rb new file mode 100644 index 0000000000..45866adfa8 --- /dev/null +++ b/lib/arel/nodes/sql_literal.rb @@ -0,0 +1,11 @@ +module Arel + module Nodes + class SqlLiteral + attr_accessor :string + + def initialize string + @string = string + end + end + end +end diff --git a/lib/arel/sql_literal.rb b/lib/arel/sql_literal.rb new file mode 100644 index 0000000000..f844ea62ce --- /dev/null +++ b/lib/arel/sql_literal.rb @@ -0,0 +1,8 @@ +module Arel + class SqlLiteral < Nodes::SqlLiteral + def initialize string + warn "#{caller.first} should use Nodes::SqlLiteral" + super + end + end +end |