Re: Never mind Re: add_to_ for existing objects
[prev]
[thread]
[next]
[Date index for 2005/04/08]
On Fri, 2005-04-08 at 13:18 -0700, Ryan Tate wrote:
> $user->add_to_notes({note_id => $note->id})
I often define my own methods for things like this to make the intent
clearer. This one doesn't look too bad, but it often helps to just wrap
some non-obvious code for adding things inside of a sub with a clear
name and interface.
- Perrin
 |
 |
Re: Never mind Re: add_to_ for existing objects
Perrin Harkins 20:27 on 08 Apr 2005
|