Changeset [b472863ee5c42665b4a6a601efb8ef66bc8cbceb] by Dan Kubb

May 28th, 2009 @ 04:34 AM

Fixed belongs_to name in m:m join model to use the singularized relationship name

  • This allows you to use a different relationship name from the target model. Previously in this case it was assumed the relationship would always be the underscored target model name, which is not always true.

[#406 state:resolved] http://github.com/datamapper/dm-...

Committed by Dan Kubb

  • M lib/dm-core/associations/many_to_many.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 »