aboutsummaryrefslogtreecommitdiffstats
path: root/lib/active_relation/extensions/object.rb
blob: 25cef989a4ee12e433820816b76c95ded40acbc8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class Object  
  def bind(relation)
    ActiveRelation::Value.new(self, relation)
  end
  
  def to_sql(formatter = nil)
    formatter.scalar self
  end
  
  def equality_predicate_sql
    '='
  end
  
  def metaclass
    class << self
      self
    end
  end
end