I also think it is used pretty frequent and may be a good convention. +1 on
this, i personally will be glad to see this on trunk.


2014-05-01 19:57 GMT+04:00 Łukasz Niemier <[email protected]>:

> It will be nice, if has_* methods will have named option. Example:
>
> has_many :foos, named: :boos
>
> # equivalent of
>
> has_many :boos, class_name: 'Foo', foreign_key: 'foo_id'
>
> IMHO it is quite often used feature. Also it will be nice to have scoped 
> option
> that will allow easy flow with scoped models (i.e. Blog::Posts).
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Core" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/rubyonrails-core.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.

Reply via email to