Rails 2.3.x - how does this ActiveRecord scope work?
问题 There's a named_scope in a project I'm working on that looks like the following: # default product scope only lists available and non-deleted products ::Product.named_scope :active, lambda { |*args| Product.not_deleted.available(args.first).scope(:find) } The initial named_scope makes sense. The confusing part here is how .scope(:find) works. This is clearly calling another named scope (not_deleted), and applying .scope(:find) afterwards. What/how does .scope(:find) work here? 回答1: A quick