Hi Rob, Why not use has_one :through? I think it's what you need ;)
Simon Courtois > On 25 févr. 2014, at 04:25, Rob Dawson <[email protected]> wrote: > > Hi, > > Long time user of rails, fist time poster. > > It feels like there should be a belongs_to :through that behaves similarly to > has_many :through, but for the belongs_to side of the relationship. > > Any thoughts/reasons why this hasn't been done? > > I'd love to contribute something to rails, and this feature would be > scratching an itch/need that I have at the moment so seems appropriate. Let > me know if there is any value/interest in getting this done, and I can fork > the repo and start putting together the patch. Of course any guidance in > doing so would be greatly appreciated. > > Regards, > > Rob > -- > 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/groups/opt_out. -- 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/groups/opt_out.
