This project is archived and is in readonly mode.
Introduce dynamic scopers (scoped_by_foo_and_bar)
Reported by Yaroslav Markin | December 27th, 2008 @ 03:22 PM | in 2.x
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.
Comments and changes to this ticket
-
Repository December 28th, 2008 @ 07:54 PM
- 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 state:committed]
Signed-off-by: David Heinemeier Hansson david@loudthinking.com http://github.com/rails/rails/co...
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>
People watching this ticket
Attachments
Tags
Referenced by
- 1648 Introduce dynamic scopers (scoped_by_foo_and_bar) (from [66ee5890c5f21995b7fe0c486547f1287afe2b55]) Introdu...