SammyLin/redactor-rails — pull request #4 by computeus (2012-07-18 01:53:58+00:00)
Title: Cancan friendlier.

This method might be useful for cases where you have code that runs for every request (for example, in your application_controller) but you want to do something different based on whether the request is being handled by redactor_rails pictures_controller or your app. You can define a redactor_rails_controller? method in your application_controller that returns false, and it will be overridden to return true for redactor_rails pictures_controller.