README.md in authoraise-0.1.0 vs README.md in authoraise-0.1.1
- old
+ new
@@ -52,12 +52,12 @@
Authoraise.strict_mode = true
# In stict mode any missing key raises an error, even if other checks passed.
authorize(user: 'sammy') do |policy|
policy.allow { |user| user == 'sammy' }
- policy.allow { |post| post.published? }
+ policy.allow { |post| post == 'foo' }
end
-# => Authoraise::Error: Inconclusive authorization, missing keys: [:post]
+# => Authoraise::Error: Strict mode found missing keys: [:post]
~~~
## Installation
Add this line to your application's Gemfile: