Changeset [540e0de6e8690193131123439758b551cc42619c] by Dan Kubb

March 28th, 2010 @ 01:41 AM

Add ability to specify :default value for relationships

  • Like with Property, :default may be a value or an object that responds to #call

[#1099 state:resolved] http://github.com/datamapper/dm-core/commit/540e0de6e86901931311234...

Committed by Dan Kubb

  • A lib/dm-core/support/subject.rb
  • A spec/semipublic/associations/many_to_many_spec.rb
  • A spec/semipublic/associations/one_to_many_spec.rb
  • A spec/semipublic/associations/one_to_one_spec.rb
  • A spec/semipublic/shared/subject_shared_spec.rb
  • M dm-core.gemspec
  • M lib/dm-core.rb
  • M lib/dm-core/associations/many_to_one.rb
  • M lib/dm-core/associations/one_to_many.rb
  • M lib/dm-core/associations/one_to_one.rb
  • M lib/dm-core/associations/relationship.rb
  • M lib/dm-core/property.rb
  • M lib/dm-core/resource.rb
  • M spec/semipublic/associations/many_to_one_spec.rb
  • M spec/semipublic/property_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 »