Module: Arel::Sql::ObjectExtensions

Defined in:
lib/arel/engines/sql/core_extensions/object.rb

Instance Method Summary collapse

Instance Method Details

#equality_predicate_sqlObject



8
9
10
# File 'lib/arel/engines/sql/core_extensions/object.rb', line 8

def equality_predicate_sql
  '='
end

#inequality_predicate_sqlObject



12
13
14
# File 'lib/arel/engines/sql/core_extensions/object.rb', line 12

def inequality_predicate_sql
  '!='
end

#to_sql(formatter) ⇒ Object



4
5
6
# File 'lib/arel/engines/sql/core_extensions/object.rb', line 4

def to_sql(formatter)
  formatter.scalar self
end