1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
module Arel module Sql module ObjectExtensions def to_sql(formatter) formatter.scalar self end def equality_predicate_sql '=' end def not_predicate_sql '!=' end Object.send(:include, self) end end end