pundit_extraextra 1.0.0 → 1.0.2
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: 6d173e513f5f118a405fcaa2c14f18ce3c285f821f79f6a69a2be634b1303aa7
|
|
4
|
+
data.tar.gz: c2a7ff1f11c23ee7180f355d9add5b986b930bcb86cca362251b8b4bafc0f137
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a7cac8998da23b19a932686d4fdd0c7817f7dd2ceae98c3a3a0b6b9c51bd62acea78ee3a086d9aa24fa23e3ddbb40a077464f9a1f0ad43dcd4384b9f6dcc6332
|
|
7
|
+
data.tar.gz: dab01d75d3ca38034a5658d37cb4f1082c98cae212dc06a9cdd8bb5a3aaa69fda795094383f9d710e486c9a2b3897b868774c27d1b6309c7c275afaaaa5e6e7f
|
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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
require 'active_support/concern'
|
|
2
2
|
|
|
3
|
-
module
|
|
3
|
+
module PunditExtraExtra
|
|
4
4
|
module ResourceAutoload
|
|
5
5
|
extend ActiveSupport::Concern
|
|
6
6
|
|
|
@@ -205,7 +205,7 @@ module PunditExtra
|
|
|
205
205
|
elsif action == 'update'
|
|
206
206
|
update_resource(current_instance, resource_name, resource_id, find_by_attribute, action)
|
|
207
207
|
else
|
|
208
|
-
|
|
208
|
+
load_index_resource(current_instance, resource_name)
|
|
209
209
|
end
|
|
210
210
|
|
|
211
211
|
resource
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pundit_extraextra
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Danny Ben Shitrit
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2025-01-09 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: Add CanCanCan like load and authorize to Pundit.
|
|
15
15
|
email: andrew.michael.fahmy@gmail.com
|
|
@@ -43,7 +43,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
43
43
|
- !ruby/object:Gem::Version
|
|
44
44
|
version: '0'
|
|
45
45
|
requirements: []
|
|
46
|
-
rubygems_version: 3.
|
|
46
|
+
rubygems_version: 3.5.22
|
|
47
47
|
signing_key:
|
|
48
48
|
specification_version: 4
|
|
49
49
|
summary: Additions for PunditExtra
|