docs/writing_policies.md in action_policy-0.2.4 vs docs/writing_policies.md in action_policy-0.3.0.beta1
- old
+ new
@@ -18,10 +18,10 @@
end
```
## Initializing policies
-**NOTE**: it is not recommended to manually initialize policy objects and use them directly (one exclusion–[tests](testing.md)). Use `authorize!` / `allowed_to?` methods instead.
+**NOTE**: it is not recommended to manually initialize policy objects and use them directly (one exclusion–[tests](testing.md)). Use [`authorize!` / `allowed_to?` methods](./behaviour.md#authorize) instead.
To initialize policy object, you should specify target record and context:
```ruby
policy = PostPolicy.new(post, user: user)