lib/access-granted/policy.rb in access-granted-1.3.0 vs lib/access-granted/policy.rb in access-granted-1.3.1
- old
+ new
@@ -56,10 +56,10 @@
!can?(*args)
end
def authorize!(action, subject)
if cannot?(action, subject)
- raise AccessDenied
+ raise AccessDenied.new(action, subject)
end
subject
end
private