
[PATCH] Add only_deleted scope to acts_as_paranoid
Reported by Diego Algorta | January 30th, 2008 @ 08:17 AM
Hi.
I sent this patch by email to technoweenie's gmail acount a few days ago with no answer. I did because the ar-paranoid project on rubyforge seems dead. So no value on posting the patch there.
So I'm posting it here hoping you can review and consider merging to the plugin branch.
This patch allows you to retrieve or count only the deleted rows of a model:
Widget.count_only_deleted
Widget.find_only_deleted
It has some tests. and doesn't break any previous tests.
Comments and changes to this ticket
-
Diego Algorta January 30th, 2008 @ 08:19 AM
I also sent errtheblog a patch to fix will_paginate pages count to use count_with_deleted (and my count_only_deleted) when paginating find_with_deleted (or find_only_deleted).
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 ยป