This project is archived and is in readonly mode.

#2072 ✓duplicate
MOROHASHI Kyosuke

[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

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

Pages