#906 ✓not-applicable
Martin Gamsjaeger (snusnu)

pass *args to every Resource#save call, subordinate save_* methods, and the Collection#save stuff

Reported by Martin Gamsjaeger (snusnu) | June 15th, 2009 @ 09:10 PM

Ticket added in reference to a discussion with dkubb on irc. The title says it all. This is needed for dm-validations to be able to validate parent and child associations with the given context

Comments and changes to this ticket

  • Dan Kubb (dkubb)

    Dan Kubb (dkubb) June 16th, 2009 @ 03:03 AM

    • State changed from “new” to “not-applicable”

    Martin: after much thought on this, I don't think the *args passing to every subordinate method is the right approach. It doesn't make sense to modify dm-core in this way when there are alternatives to set the context for methods deeper in the call stack to access.

    We should use an approach similar to how Repository scope is set for example. It allows us to communicate out of band information to deep methods without having to pass along arguments to every step in the chain.

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.

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 »