Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Introduce dynamic scopers (scoped_by_foo_and_bar)

#1648

Patch adds dynamic scopers support (basically the same thing as with dynamic finders, but with calling AR::Base.scoped())

I don't think tests are good enough, so it will be great to have some hints on improving, thanks.

Reported by Yaroslav Markin · December 27th, 2008 @ 03:22 PM

State: committed
Milestone: 2.x
Assigned to: DHH DHH
Importance: none

Activity

  1. Yaroslav Markin
  2. Yaroslav Markin
  3. Repository
    Repository
    • State changed from new to committed

    (from [66ee5890c5f21995b7fe0c486547f1287afe2b55]) Introduce dynamic scopes for ActiveRecord: you can now use class methods like scoped_by_user_name(user_name) and scoped_by_user_name_and_password(user_name, password) that will use the scoped method with attributes you supply. [#1648 Introduce dynamic scopers (scoped_by_foo_and_bar) state:committed]

    Signed-off-by: David Heinemeier Hansson david@loudthinking.com http://github.com/rails/rails/co...

    December 28th, 2008 @ 07:54 PM