I haven't done much with it but it seems like it's informing rails of the other side of the relationship which is mostly useful for avoiding extra DB calls and in rare cases, out of date models.
Say you have a post, which has many comments. You load post with all comments. Without the inverse of, if you call post from within a comment, it makes a new DB call to load post because rails doesn't know that it already has the appropriate information. I saw an example, where the parent was changed but the child still had old info. It seemed rather contrived, but I suppose someone might run into problems with it. On Thursday, July 17, 2014 12:49:33 PM UTC-6, Quiliro Ordóñez Baca wrote: > > I do not really understand what that flag does. > > "The :accessible flag is a Hobo addition, the :inverse_of flag is > standard Rails. :inverse_of is optional but highly recommended in Rails; > Hobo requires it." > http://www.hobocentral.net/manual/multi_model_forms > > -- > Saludos libres, > Quiliro Ordóñez > 600 8579 > > -- You received this message because you are subscribed to the Google Groups "Hobo Users" 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/hobousers. For more options, visit https://groups.google.com/d/optout.
