aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/engines/sql/core_extensions/nil_class.rb
blob: ab990d621161a0d21f536863287a576aeddff47d (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