1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
module Arel module Sql module NilClassExtensions def equality_predicate_sql 'IS' end def inequality_predicate_sql 'IS NOT' end def not_predicate_sql 'IS NOT' end NilClass.send(:include, self) end end end