lib/authority/controller.rb in authority-2.5.0 vs lib/authority/controller.rb in authority-2.6.0

- old
+ new

@@ -1,9 +1,10 @@ module Authority # Gets included into the app's controllers automatically by the railtie module Controller extend ActiveSupport::Concern + include ActiveSupport::Rescuable unless defined?(Rails) def self.security_violation_callback Proc.new do |exception| # Through the magic of ActiveSupport's `Proc#bind`, `ActionController::Base#rescue_from` # can call this proc and make `self` the actual controller instance