aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/engines/sql/core_extensions/nil_class.rb
blob: 3f70677ba6f06ff3678cb8a6e9e73cacdef84abc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module Arel
  module Sql
    module NilClassExtensions
      def equality_predicate_sql
        'IS'
      end

      def not_predicate_sql
        'IS NOT'
      end

      NilClass.send(:include, self)
    end
  end
end