Module: ActiveRecord::Bitemporal::Patches::SingularAssociation

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

Instance Method Summary collapse

Instance Method Details

#scope_for_createObject



136
137
138
139
# File 'lib/activerecord-bitemporal/patches.rb', line 136

def scope_for_create
  return super unless klass&.bi_temporal_model?
  super.except!(klass.bitemporal_id_key)
end