aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/engines/sql/core_extensions/nil_class.rb
blob: 9f060ff36e7ac1a5abba37bce52cc13c36a8cf85 (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 inequality_predicate_sql
        'IS NOT'
      end

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