lib/authority.rb in authority-1.1.0 vs lib/authority.rb in authority-2.0.0
- old
+ new
@@ -55,10 +55,12 @@
require 'authority/authorizer'
require 'authority/user_abilities'
end
class SecurityViolation < StandardError
+ attr_reader :user, :action, :resource
+
def initialize(user, action, resource)
@user = user
@action = action
@resource = resource
end
@@ -72,6 +74,5 @@
require 'authority/configuration'
require 'authority/controller'
require 'authority/railtie' if defined?(Rails)
require 'authority/version'
-