Module: ActiveRecord::Bitemporal::Patches::Merger

Defined in:
lib/activerecord-bitemporal/patches.rb

Instance Method Summary collapse

Instance Method Details

#mergeObject



124
125
126
127
128
129
# File 'lib/activerecord-bitemporal/patches.rb', line 124

def merge
  if relation.klass.bi_temporal_model? && other.klass.bi_temporal_model?
    relation.bitemporal_value.merge! other.bitemporal_value
  end
  super
end