jnunemaker/mongomapper — comment on commit e755e1aab0257e575e46777ceab13ea4619cf905
File:  line 0
By collindo:

@bkeepers I updated my comment when I realized that it was almost identical
to your option 3, and I do like pointing to the association better. Cool
idea. I didn't realize that :from would be unnecessary, but that makes
sense.

On Wed, Nov 2, 2011 at 9:00 AM, Brandon Keepers <
reply@reply.github.com>wrote:

> @collindo I had been thinking about using inverse of, but just pointing it
> to the association. By doing that, we could just get rid of `:from`
> altogether since it could be inferred from the inverse association.
>
> ```ruby
> class User
> many :lists, :inverse_of => :users
> end
> ```
>
> With this approach, the association proxy could just use the logic in the
> existing InArrayProxy. Thoughts?
>
> --
> Reply to this email directly or view it on GitHub:
>
> https://github.com/jnunemaker/mongomapper/commit/e755e1aab0257e575e46777ceab13ea4619cf905#commitcomment-690379
>