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.

Why HasOneThroughAssociation extends from HasManyThroughAssociation?

#2014

The fact that HasOneThroughAssociation extends from HasManyThroughAssociation has a few drawbacks for me:

  • Can't use association constructor methods
  • Can't set has_one :through associations to unsaved records
  • ...

Reported by ronin-47871 (at lighthouseapp) · February 19th, 2009 @ 02:19 PM

State: duplicate
Milestone: 2.x
Assigned to: Pratik Pratik
Importance: none

Activity

  1. ronin-47871 (at lighthouseapp)
    ronin-47871 (at lighthouseapp)

    Attached a patch with a possible HasOneThroughAssociation extending from HasOneAssociation.

    February 19th, 2009 @ 02:51 PM

  2. Pratik
    Pratik
    • Assigned user set to Pratik
    • State changed from new to duplicate

    This is related to #1642 HasOneThroughAssociation should not be a child of HasManyThroughAssociation. Could you please provide a failing test case in the other patch displaying the problem with the current code?

    Thanks !

    March 8th, 2009 @ 04:36 PM