repeat conditions in paginate association
Reported by RainChen | September 10th, 2007 @ 09:11 AM
I install Exported revision 365, it seems repeat the same conditions:
paginate_options = { :page => params[:page], :per_page => 30, :order => ‘ID DESC’ } @project = Project.find(params[:id]) @project.tasks.paginate paginate_options
=> SELECT count(*) AS count_all FROM tasks WHERE (tasks.project_id = 5) AND (tasks.project_id = 5)
"tasks.project_id = 5" repeat twice.
Comments and changes to this ticket
-
Chris Wanstrath September 10th, 2007 @ 08:40 PM
- Assigned user changed from Chris Wanstrath to Mislav
- State changed from new to open
-
Mislav September 27th, 2007 @ 01:30 AM
- State changed from open to resolved
Thanks. This was a glitch in AR that I've worked around. It may still happen in some rare cases, but is nothing to worry about.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Everyone's favorite Ruby library for pagination of practically anything!