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.

Changeset [66ee5890c5f21995b7fe0c486547f1287afe2b55] by Yaroslav Markin

Revision 66ee5890c5f21995b7fe0c486547f1287afe2b55, committed by Yaroslav Markin · December 28th, 2008 @ 07:52 PM

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 state:committed]

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

5 changed files

  • M activerecord/CHANGELOG
  • M activerecord/lib/active_record.rb
  • M activerecord/lib/active_record/base.rb
  • M activerecord/lib/active_record/dynamic_scope_match.rb
  • M activerecord/test/cases/named_scope_test.rb