Hobo scope should work with has_many :through
Reported by Bryan Larsen | April 24th, 2009 @ 09:59 PM | in Hobo 1.0 - Final
The agility tutorial gives this example in "Granting Write Access to Others":
has_many :contributor_memberships, :class_name => "ProjectMembership", :scope => :contributor
has_many :contributors, :through => :contributor_memberships, :source => :user
The problem is that doesn't actually work. contributor_memberships applies the scope, but contributors does not.
See discussion here: http://groups.google.com/group/h...
Comments and changes to this ticket
-
Owen April 25th, 2009 @ 07:43 PM
- Assigned user set to Bryan Larsen
Bryan,
Can you add a Barquin suggested priority of '1' to this?
Thanks,
Owen
-
Tom Locke April 27th, 2009 @ 03:37 PM
- State changed from new to open
-
Bryan Larsen May 1st, 2009 @ 09:15 PM
- State changed from open to resolved
I pushed a fix. I also updated agility to demonstrate the "optional" part of the tutorial, and added a selenium test. The test also conveniently tests auto-complete.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป