On Wed, Mar 30, 2011 at 6:33 AM, PsiPro <[email protected]> wrote: > Hey all, > > I have two models, in the first model > > Model1.search(nil) > > returns the metasearch builder as expected. > > for the the second model, the same search(nil) returns every object in > the database (all 60k of them). This obviously isn't what I want. I > can't seem to figure out what I did to the model to get it to behave > this way, I have removed all of the code from the model itself and the > behavior is still the same. >
Can you paste in code pertinent to what you are doing? Sounds like is not the case but I would think that somewhere you are calling .all on the search if you are getting such a result. > > Any tips/tricks/ideas would be very helpful. > > Thank you, > Brian > > -- > 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. > > -- 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.

