This project is archived and is in readonly mode.

Changeset [66ee5890c5f21995b7fe0c486547f1287afe2b55] 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...

Committed by Yaroslav Markin

  • 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

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>