README.md in arpa-0.0.8 vs README.md in arpa-0.0.9
- old
+ new
@@ -103,26 +103,20 @@
```ruby
has_access?('users', 'index')
```
-To reset the session permissions created by Arpa, use the following helper:
-```ruby
-reset_permissions
-```
+**Obs.:** To that helper method works. You must have **:current_user** attribute or method.
-**Obs.:** To that helper method works. You must have **:session** (In Rails app already has) and **:current_user** attribute or method.
-
---
If you want use that methods inside another object you should use the **Arpa::Services::Verifier** class;
You just need pass as arguments the :session and :current_user:
```ruby
-verifier = Arpa::Services::Verifier.new(session, current_user)
+verifier = Arpa::Services::Verifier.new(current_user)
verifier.has_access?('users', 'index')
-verifier.reset_permissions
```
### Controller Filter
If you want create a filter to verify if the current_user has access and if not redirect to another route you can do this: