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