Module: ElasticRecord::Merging

Included in:
Relation
Defined in:
lib/elastic_record/relation/merging.rb

Defined Under Namespace

Classes: Merger

Instance Method Summary collapse

Instance Method Details

#merge(other) ⇒ Object



7
8
9
# File 'lib/elastic_record/relation/merging.rb', line 7

def merge(other)
  clone.merge!(other)
end

#merge!(other) ⇒ Object



3
4
5
# File 'lib/elastic_record/relation/merging.rb', line 3

def merge!(other)
  Merger.new(self, other).merge
end