pundit_extraextra 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b7a91e792d945872b0bb1089353e165faeec8f5c3759f14a77543903ab9f2626
|
|
4
|
+
data.tar.gz: ac733fce058573135b741477b06e9b39c211dc98bf2cd2453e16541dfe0492f0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d14f3d803febec0e9af6818989a6b6f89375971171b12623790bcfdc7a67f6adf76e1c526b5d3e39c252b1452ee4ccbcb0539f2570cb194ac9384e3b2e60579b
|
|
7
|
+
data.tar.gz: 43c2ca80046379484991e7a1224464579ca888f3a4f5ac003b9a4903c9048201106828fb36942d871a6fe61add6c21d7918ba2e66988b9e05f2da10a762084b8
|
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# PunditExtraExtra
|
|
2
2
|
|
|
3
3
|
[](https://badge.fury.io/rb/pundit_extra)
|
|
4
4
|
[](https://github.com/DannyBen/pundit_extra/actions?query=workflow%3ATest)
|
|
@@ -34,7 +34,7 @@ Add to your `ApplicationController`:
|
|
|
34
34
|
```ruby
|
|
35
35
|
class ApplicationController < ActionController::Base
|
|
36
36
|
include Pundit::Authorization
|
|
37
|
-
include
|
|
37
|
+
include PunditExtraExtra
|
|
38
38
|
end
|
|
39
39
|
```
|
|
40
40
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
module
|
|
1
|
+
module PunditExtraExtra
|
|
2
2
|
def self.included(_base)
|
|
3
3
|
return unless defined? ActionController::Base
|
|
4
4
|
|
|
5
5
|
ActionController::Base.class_eval do
|
|
6
|
-
include
|
|
7
|
-
include
|
|
6
|
+
include PunditExtraExtra::Helpers
|
|
7
|
+
include PunditExtraExtra::ResourceAutoload
|
|
8
8
|
end
|
|
9
9
|
end
|
|
10
10
|
end
|