On 2 February 2011 03:15, slava <mikerin.sl...@gmail.com> wrote: > I know I can set default_scope for individual active record model, but > can I set one up for the whole application?
I guess you could derive a class from ActiveRecord::Base and put the default scope in there, then derive your models from that. I have not tried it though. Colin -- 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 rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.