ryanb/cancan — pull request #716 by jhawthorn (2012-08-12 20:54:47+00:00)
Title: Store attribute in CanCan::Unauthorized exception

Stores the attribute for which authorized in fails in the raised CanCan::Unauthorized when calling ability.authorize!

This should help with error messages and debugging.