ryanb/cancan — pull request #794 by rykov (2012-12-22 01:19:39+00:00)
Title: Fix: Unlike ActiveRecord, DataMapper doesn't raise record-not-found errors

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`.