Sha256: 61de07d7c75cdccb5dcdc9d1d013651c73ea7535cea56d4688f57cff1af11988

Contents?: true

Size: 289 Bytes

Versions: 5

Compression:

Stored size: 289 Bytes

Contents

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

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
arel-1.0.1 lib/arel/engines/sql/core_extensions/object.rb
arel-1.0.0 lib/arel/engines/sql/core_extensions/object.rb
arel-1.0.0.rc1 lib/arel/engines/sql/core_extensions/object.rb
arel-compat-0.4.0 lib/arel/engines/sql/core_extensions/object.rb
arel-0.4.0 lib/arel/engines/sql/core_extensions/object.rb