Wheeeeeeeeee :D // sorry for the spammy message, but really, this is fantastic in many levels :D
On Tue, Oct 19, 2010 at 10:31 PM, Aaron Patterson <[email protected]> wrote: > 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/ > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" 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-core?hl=en.
