nexus_cqrs 0.4.9 → 0.4.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6e8ee5ed4253fc4a5aa94759a8f3c367421b0d7be44d6777c90c276787d9ea4b
4
- data.tar.gz: 76b40be983df9643f0a5f3d3e2840680df819d50833705effeff16742169cb47
3
+ metadata.gz: 2de01113624da9f34ad746245040dbe1b3cfe3b7456ef9469276ea55f4028e36
4
+ data.tar.gz: 4bee563d663c91ec5ab2ce427c5bf85a72fb61cf3d9cc62c421c0d33fa702f95
5
5
  SHA512:
6
- metadata.gz: a7adb30cee344cd75643c0a62ccca0731d78e425756a678d079a8e975bf562565f3f1aa10f4a18946117fd2e4bb216ee0b9d5b64c00c756c059c5d9ab4f27457
7
- data.tar.gz: cec44e682a10b09e837a98a34b05d25b7b63486c775dafafa8f54880d113d63941199d754d0047f9616db037e6d5b1d37c54a9e45193aa7cee793e55e353ef86
6
+ metadata.gz: f72a628ae359b77817d29152df1334f8902234ef5e0882daee4df94d3a3c16c98a67b98fa31815daac2b0952a7124490e6deeae4b50e723bd73434c678dfb362
7
+ data.tar.gz: 96aec6eced1dfeb88265633a0c9b946235e5acbee2ca640f984829cde61897680d09fbc26c93d259c833b4b46d7432d56fb450ff7c65d81a62d2304cf4fcb7b0
@@ -24,7 +24,10 @@ module NexusCqrs
24
24
  global_permissions = message.metadata[:global_permissions]
25
25
 
26
26
  # Raise issue if policy class doesn't exist
27
- raise Pundit::NotAuthorizedError, query: query, record: record if policy_class.nil?
27
+ raise Pundit::NotAuthorizedError,
28
+ query: query,
29
+ record: record,
30
+ message: "There is no policy class available for #{record.class}" if policy_class.nil?
28
31
 
29
32
  # Instantiate new policy class, with context
30
33
  policy = policy_class.new(UserContext.new(user, global_permissions), record)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module NexusCqrs
3
- # Leave this as 0.4.9 in order for CI process to replace with the tagged version.
4
- VERSION = '0.4.9'
3
+ # Leave this as 0.4.10 in order for CI process to replace with the tagged version.
4
+ VERSION = '0.4.10'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nexus_cqrs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.9
4
+ version: 0.4.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dean Lovett