jnunemaker/canable — pull request #7 by elight (2012-04-24 00:28:42+00:00)
Title: Support for optional handler of successful enforce calls

I'm expecting to write one or a few gems that I intend to play nicely with canable. However, I found myself in the position of needing to monkey patch/alias method chain. As I basically hate monkey patching, I thought it better to add support for an optional Observer-like behavior.

In this case, when an enforce* method is called, it will call a "handle_enforce" method on the controller if the controller responds to that message.