nkryptic-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Nov-13 08:59 UTC
has_many :through extended with writer and clear methods
I''ve extended the has_many :through association to include a clear method as well as adding a mass assignment for the collection, since it already has a working << method on edge rails. I wanted to know if what I am doing is sane and/or if it is redundant because it is already being worked into rails edge. The full description and code is at http://www.nkryptic.com/2006/11/12/make-has_many-through-more-like-has_many If there is a better way to handle this, or if there is some reason that what I''m doing will cause other problems, please let me know. Otherwise, feel free to use it. Perhaps, I''ll submit it as a patch to the dev team. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Jacob Radford
2006-Nov-13 09:13 UTC
has_many :through extended with writer and clear methods
I''ve extended the has_many :through association to include a clear method as well as adding a mass assignment for the collection, since it already has a working << method on edge rails. I wanted to know if what I am doing is sane and/or if it is redundant because it is already being worked into rails edge. The full description and code is at http://www.nkryptic.com/2006/11/12/make-has_many-through-more-like-has_many If there is a better way to handle this, or if there is some reason that what I''m doing will cause other problems, please let me know. Otherwise, feel free to use it. Perhaps, I''ll submit it as a patch to the dev team if anyone else thinks it''s useful. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---