aboutsummaryrefslogblamecommitdiffstats
path: root/lib/active_relation/extensions/object.rb
blob: 25cef989a4ee12e433820816b76c95ded40acbc8 (plain) (tree)
1
2
3
4
5
6
7
8
9
              
                    
                                             
     
  

                             

     



                            




                 
  
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