Method: ActiveRecord::Relation::Merger#initialize

Defined in:
lib/active_record/relation/merger.rb

#initialize(relation, other, rewhere = nil) ⇒ Merger

Returns a new instance of Merger.



47
48
49
50
51
52
# File 'lib/active_record/relation/merger.rb', line 47

def initialize(relation, other, rewhere = nil)
  @relation = relation
  @values   = other.values
  @other    = other
  @rewhere  = rewhere
end