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

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

Instance Method Summary collapse

Instance Method Details

#merge(other) ⇒ Object



156
157
158
159
160
161
162
# File 'lib/activerecord-bitemporal/scope.rb', line 156

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