cancan icon indicating copy to clipboard operation
cancan copied to clipboard

Fix: Unlike ActiveRecord, DataMapper doesn't raise record-not-found errors

Open rykov opened this issue 11 years ago • 2 comments

This fix is to ensure that DataMapper adapter behavior matches ActiveRecord when a record is not found. This allows to consistently handle missing records using rescue_from, rather than checking the resource variable for nil.

rykov avatar Dec 22 '12 01:12 rykov

I need this too. I would really like to see this integrated.

Ragmaanir avatar May 30 '13 22:05 Ragmaanir

Thanks for your submission! The ryanb/cancan repository has been inactive since Sep 06, 2013. Since only Ryan himself has commit permissions, the CanCan project is on a standstill.

CanCan has many open issues, including missing support for Rails 4. To keep CanCan alive, an active fork exists at cancancommunity/cancancan. The new gem is cancancan. More info is available at #994.

If your pull request or issue is still applicable, it would be really appreciated if you resubmit it to CanCanCan.

We hope to see you on the other side!

xhoy avatar Jul 01 '14 07:07 xhoy