effective_resources 2.15.0 → 2.16.0

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: fd61b5df998f90f23f8564279a7dc20840cf169c5114b026ff7cadef9978f00f
4
- data.tar.gz: 1106d08aabdc5053db5fb6e78db263be7157b477b78dc6162f7edc8feef10ede
3
+ metadata.gz: 8a70b9647f9b09469826a5a2f553b8c5d61314606068c3b38dc0674f0f856d08
4
+ data.tar.gz: 49cf8b3180af7b8884bce5448f152d833298cc5ad2576d2e89ffae91b4ff6853
5
5
  SHA512:
6
- metadata.gz: 8815dfa572def42ccad3f5731af8fffe847992a997568a2fd867a4b1586ec51716bfd368d42df15f5578fa2a3759ada115e09243ee225314aa7b3d1f30e14412
7
- data.tar.gz: 1abf591d59b8a0ec96bfe05f8a2d0e6776389b7016a47ae72bc0bf010a70f33c8f7719a4b4e0424c55b0869c6eb3afc9ce9f82984ce7769800b637c4c0c992cd
6
+ metadata.gz: 180d32cc45cf6dbebd7054ecac0b1d1f6cdc8648c383f72dcaeb7181845487ac06aa489b4006517369abc009e94b3d0043d23d2e947743f455d3cd553536c533
7
+ data.tar.gz: c6077eabe34ab5f6acd89441d4ca2a8688f6075ba3f0fbb6621616b62ea3dfbc1a64f554f7316ddf1713d26df022ab649f9d45c6720299998d14524643e8c21f
@@ -82,7 +82,8 @@ module Effective
82
82
  private
83
83
 
84
84
  def resource_scope
85
- effective_resource.relation
85
+ relation = effective_resource.relation
86
+ relation.try(:deep) || relation
86
87
  end
87
88
 
88
89
  def resource_name # 'thing'
@@ -1,3 +1,3 @@
1
1
  module EffectiveResources
2
- VERSION = '2.15.0'.freeze
2
+ VERSION = '2.16.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_resources
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.15.0
4
+ version: 2.16.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: 2023-10-26 00:00:00.000000000 Z
11
+ date: 2023-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails