This project is archived and is in readonly mode.

#739 ✓wontfix
Genki Takiuchi

Improved named_scope to be used like as with_scope

Reported by Genki Takiuchi | August 1st, 2008 @ 10:53 AM | in 2.x

named_scope is really cool feature of the latest Ruby on Rails, but it can't be used with good old with_scope.

So I implemented "with" method to the Scope class so that we can use a scoped block like this:

User.active.with do
  User.count #=> equals to User.active.count
end

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages