Changeset [40ff12ed9dacb4ce005b6bc19e6e1200fd11faac] by Jonathan Stott

June 10th, 2010 @ 06:12 AM

Initialize relationships before checking for keys

DataMapper.finalize now initializes all relationships before checking
for keys. This allows a join model which consists entirely of
belongs_to relationships with :key => true' to be considered valid.

[#1313 state:resolved]

Committed by Jonathan Stott

  • M lib/dm-core.rb
  • M spec/public/finalize_spec.rb
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »