On Tue, Oct 19, 2010 at 06:06:15PM -0500, Tim Morgan wrote:
> This is great, and I wouldn't have seen the possibilities if you hadn't
> explained it in code!
> 
> Thanks!

No problem.  I've updated the `scope` method to accept objects that
respond to `call` as well:

  
http://github.com/rails/rails/blob/master/activerecord/test/models/topic.rb#L22-26
  
http://github.com/rails/rails/blob/master/activerecord/test/cases/named_scope_test.rb#L128-132

Now we can more easily reuse our scope code!
-- 
Aaron Patterson
http://tenderlovemaking.com/

Attachment: pgpQxuZEnCjiL.pgp
Description: PGP signature

Reply via email to