Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Changeset [afa0c7f728a8896c9ee9d932033e08a4c99dfd50] by Brad Greenlee

Revision afa0c7f728a8896c9ee9d932033e08a4c99dfd50, committed by Repository · July 6th, 2008 @ 07:25 PM

Add support for :primary_key option to has_one as well as has_many so that a key other than the default primary key can be used for the association

Signed-off-by: Michael Koziarski

http://github.com/rails/rails/co...

5 changed files

  • M activerecord/lib/active_record/associations.rb
  • M activerecord/lib/active_record/associations/has_one_association.rb
  • M activerecord/test/cases/associations/has_one_associations_test.rb
  • M activerecord/test/cases/reflection_test.rb
  • M activerecord/test/models/company.rb