diff options
Diffstat (limited to 'lib/arel/engines/sql/core_extensions/nil_class.rb')
-rw-r--r-- | lib/arel/engines/sql/core_extensions/nil_class.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/arel/engines/sql/core_extensions/nil_class.rb b/lib/arel/engines/sql/core_extensions/nil_class.rb index c3dbc8cd76..3f70677ba6 100644 --- a/lib/arel/engines/sql/core_extensions/nil_class.rb +++ b/lib/arel/engines/sql/core_extensions/nil_class.rb @@ -5,6 +5,10 @@ module Arel 'IS' end + def not_predicate_sql + 'IS NOT' + end + NilClass.send(:include, self) end end |