File tree Expand file tree Collapse file tree 4 files changed +5
-14
lines changed Expand file tree Collapse file tree 4 files changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ Add this line to your application's `Gemfile`:
2222
2323``` ruby
2424gem " action_policy"
25+ # or start from the new version,
26+ # which is coming soon (it contains much more useful features)
27+ gem " action_policy" , " 0.3.0.beta1"
2528```
2629
2730And then execute:
Original file line number Diff line number Diff line change 55
66> Action Policy is an authorization framework for Ruby and Rails applications.
77
8+ ** NOTE:** this documentation covers the _ coming-soon_ version "0.3.0" ([ first beta] ( https://rubygems.org/gems/action_policy ) is out!).
9+
810## What is it?
911
1012_ Authorization_ is an act of giving ** someone** official
Original file line number Diff line number Diff line change @@ -55,13 +55,6 @@ p ex.result.reasons.details #=> { stage: [:show?] }
5555
5656## Detailed Reasons
5757
58- ** NOTE:** this feature hasn't been released yet and planned for 0.3.0 release.
59- You can use it now by installing the gem from GitHub master:
60-
61- ``` ruby
62- gem " action_policy" , github: " palkan/action_policy"
63- ```
64-
6558You can provide additional details to your failure reasons by using a ` details: { ... } ` option:
6659
6760``` ruby
Original file line number Diff line number Diff line change 11# Scoping
22
3- ** NOTE:** this feature hasn't been released yet and planned for 0.3.0 release.
4- You can use it now by installing the gem from GitHub master:
5-
6- ``` ruby
7- gem " action_policy" , github: " palkan/action_policy"
8- ```
9-
103By _ scoping_ we mean an ability to use policies to _ scope data_ (or _ filter/modify/transform/choose-your-verb_ ).
114
125The most common situation is when you want to _ scope_ ActiveRecord relations depending
You can’t perform that action at this time.
0 commit comments