api-blocks 0.4.5 → 0.4.6

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: c689f6d7256e7f215405e818291937d1ccb5c3df78d56624f419e542a3b02df5
4
- data.tar.gz: cebe4dd1fa4e7442a9a9fc5508fb82a82f43ff730f712c53bbf86d7e95a324b2
3
+ metadata.gz: 350e8ea9a460e3a5d7306c60bf497aa5a03b173414c038c0595cd4ffd0bad210
4
+ data.tar.gz: 422dfc7fd2cecbf43961a501788aaa4e297a0de4929879aeb6c4ab841c4a8cc3
5
5
  SHA512:
6
- metadata.gz: 405102e9d529bef8a79e30f1c3a86ea81d7301941cb62feabf9a99b27a33b225dca805f0c0a989ce742aef4fadf026783ab2cadb73c459b335884182b3183905
7
- data.tar.gz: 80989b093a59a84217e200d99eac74009ab450b1365762fc4ef9e2957748dce89b8c4e5df5196227ef1378b87ef547811c1fd4b341fed40de61b195bd01b5dd3
6
+ metadata.gz: 157d73d50b4d51ef1a6849abd390c8d102c9065c0a9824732d7dbd2c7d591f6a94419f6c7ef65d890e27d8f1544aa012eab7995ab87fa610020a192517957661
7
+ data.tar.gz: 344687ec6e19b861234215d2d911bbf8c464771d9b86dbf0b05ab73da154063bbdf6b9e666cd2a1cd22cbf56cf67e008cf1afa47bcbbb1b12e6ff2af6efbb905
@@ -38,7 +38,7 @@ module ApiBlocks::Controller
38
38
  # Override policy_scope to lookup pundit policies under the `scope`
39
39
  # namespace
40
40
  def policy_scope(scope)
41
- api_scope = self.class.pundit_api_scope || []
41
+ api_scope = self.class.inherited_pundit_api_scope || []
42
42
 
43
43
  super(api_scope + [scope])
44
44
  end
@@ -46,7 +46,7 @@ module ApiBlocks::Controller
46
46
  # Override authorize to lookup pundit policies under the `scope`
47
47
  # namespace
48
48
  def authorize(record, query = nil)
49
- api_scope = self.class.pundit_api_scope || []
49
+ api_scope = self.class.inherited_pundit_api_scope || []
50
50
 
51
51
  super(api_scope + [record], query)
52
52
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module ApiBlocks
4
4
  # Current version of ApiBlocks
5
- VERSION = '0.4.5'
5
+ VERSION = '0.4.6'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api-blocks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul d'Hubert