diff options
Diffstat (limited to 'lib/arel/engines/sql/primitives.rb')
-rw-r--r-- | lib/arel/engines/sql/primitives.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/arel/engines/sql/primitives.rb b/lib/arel/engines/sql/primitives.rb index 666579331a..78e1ed7f0b 100644 --- a/lib/arel/engines/sql/primitives.rb +++ b/lib/arel/engines/sql/primitives.rb @@ -34,6 +34,10 @@ module Arel value.equality_predicate_sql end + def not_predicate_sql + value.not_predicate_sql + end + def to_sql(formatter = Sql::WhereCondition.new(relation)) formatter.value value end |