Module: ActiveRecord::Bitemporal::Relation::MergeWithExceptBitemporalDefaultScope

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

Instance Method Summary collapse

Instance Method Details

#merge(other) ⇒ Object



112
113
114
115
116
117
118
# File 'lib/activerecord-bitemporal/scope.rb', line 112

def merge(other)
  if other.is_a?(Relation) && other.klass.bi_temporal_model?
    super(other.except_bitemporal_default_scope)
  else
    super
  end
end