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 [1c11437a32a973fa9b521c32caa7256f9772acd7] by Szymon Nowak

Revision 1c11437a32a973fa9b521c32caa7256f9772acd7, committed by Szymon Nowak · July 16th, 2009 @ 02:13 AM

Add primary_key option to belongs_to association

[#765 state:committed]

Signed-off-by: Jeremy Kemper jeremy@bitsweat.net http://github.com/rails/rails/co...

14 changed files

  • M activerecord/CHANGELOG
  • M activerecord/lib/active_record/associations.rb
  • M activerecord/lib/active_record/associations/belongs_to_association.rb
  • M activerecord/lib/active_record/associations/belongs_to_polymorphic_association.rb
  • M activerecord/lib/active_record/autosave_association.rb
  • M activerecord/test/cases/associations/belongs_to_associations_test.rb
  • M activerecord/test/cases/base_test.rb
  • M activerecord/test/cases/reflection_test.rb
  • M activerecord/test/models/author.rb
  • M activerecord/test/models/company.rb
  • M activerecord/test/models/essay.rb
  • M activerecord/test/models/reply.rb
  • M activerecord/test/models/topic.rb
  • M activerecord/test/schema/schema.rb