aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/engines/sql/core_extensions/object.rb
blob: 01c3c5479de8d1505d3ce5aac7112cb6a74e5bf4 (plain) (blame)
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 inequality_predicate_sql
        '!='
      end

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