aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/extensions/object.rb
blob: 14e2f82ce52d15c94be3694c70c2273bc1cbc60e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class Object
  def bind(relation)
    Arel::Value.new(self, relation)
  end

  def find_correlate_in(relation)
    bind(relation)
  end

  def to_sql(formatter)
    formatter.scalar self
  end

  def equality_predicate_sql
    '='
  end

  def metaclass
    class << self
      self
    end
  end
end