This project is archived and is in readonly mode.
[PATCH] dynamic scope should reflect chained scopes
Reported by MOROHASHI Kyosuke | February 25th, 2009 @ 03:28 PM | in 2.x
DynamicScope ignores chaind scopes. Is'nt it bug?
For example,
Post.a_pre_defined_scope.scoped_by_author_id(1)
reflects only scoped_by_author_id
scope, ignores
a_pre_defined_scope
.
Of course it also affetct 2 or more chained dynamic scope,
Post.scoped_by_author_id(1).scoped_by_title("a title")
ignores scoped_by_author_id
.
I wrote a patch to fix this problem.
Comments and changes to this ticket
-
MOROHASHI Kyosuke February 26th, 2009 @ 01:33 AM
may be fixed by #1960.
I want someone to close this ticket.
-
Jeremy Kemper February 26th, 2009 @ 03:51 AM
- State changed from new to duplicate
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>