effective_storage 0.4.7 → 0.5.0
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: 56132c2df34a8e92e79e9535604ac3f9e0b3c63196419190434b0fc2d9c30626
|
|
4
|
+
data.tar.gz: 85cbf1b08714cf40672cc78a4368d1c1a6320e63368a8a827a952c8d0d54486a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c379ef05a4d7c81d591e6a43f2c74e01c6488ccafae3b138cbbc982f5f241ce744191527be08d1e95817ac2f1324491ff8dd229d439dd7f31d867407cf5f0a0e
|
|
7
|
+
data.tar.gz: 2aeac15bc355e1d8704ba7d32793ad4d85bd30647ffebb869a5c43408395c5b3291abf64109475277dc4ae5edfa040a7263b685a7d8b27e2f7d358619f5079cc
|
|
@@ -42,13 +42,7 @@ module ActiveStorageAuthorization
|
|
|
42
42
|
# Send an ExceptionNotification email with the unauthorized details
|
|
43
43
|
# This is not visible to users
|
|
44
44
|
def unauthorized_active_storage_request(exception)
|
|
45
|
-
|
|
46
|
-
if defined?(ExceptionNotifier)
|
|
47
|
-
data = { 'current_user_id': current_user&.id || 'none' }.merge(@blob&.attributes || {})
|
|
48
|
-
ExceptionNotifier.notify_exception(exception, env: request.env, data: data)
|
|
49
|
-
else
|
|
50
|
-
raise(exception)
|
|
51
|
-
end
|
|
45
|
+
EffectiveResources.send_error(exception, current_user_id: (current_user&.id || 'none'))
|
|
52
46
|
end
|
|
53
47
|
|
|
54
48
|
private
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: effective_storage
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Code and Effect
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-02-
|
|
11
|
+
date: 2026-02-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|