On Jan 7, 11:26 pm, cntrytwist <cntrytw...@gmail.com> wrote:
>
> During the @cts.each do block, I am performing more than just adding
> to the all_contracts array.  How do I dry up the two lines that create
> the all_contracts array?  I want just an array, not an instance of
> AsociationCollection.

If you call to_a on the association you'll get a plain old array (that
is the array that is the association's backing store - if you're
planning on modifying it you should probably dup it)

Fred
-- 
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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.


Reply via email to