On Fri, Aug 26, 2011 at 7:31 PM, News Aanad <[email protected]> wrote:
> Hi, I have such a data base which has a self-join as association. > I want to know that is there any good gem available which i can use for > self-join in my application? > My main intension is to prevent infinite loop in searching the records. > > How are you going to get an infinite loop while searching? Having class User < ActiveRecord::Base belongs_to :another_user, :class_name => 'User' end and eager loading another_user would not result in an infinite loop. > @Anand > > -- > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > -- ------------------------------------------------------------- visit my blog at http://jimlabs.heroku.com -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

