five-two-nw-olivander 0.1.2.19 → 0.1.2.20

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: 7284d4aa04aaed8ef7631ecd5c68d4780070ca745690b5eccdcc33398312c865
4
- data.tar.gz: 929fe16028a179c0d6831cc853d8bcf96cb6341a670edca50ce954875b311ce1
3
+ metadata.gz: 246a0885f08a65203cd38b0cf490510eb6422850f30d488421922cdd18105086
4
+ data.tar.gz: ade950c3c647d7a5944465933c5b172d44d455da2622c5b3f63817f9721e9d2d
5
5
  SHA512:
6
- metadata.gz: bc366eae4724c2b807d0149fca02181d136dcfe06ddcb211dc963fc9058bc4c30932c401aa4230d5be83cdec63fc5a04638e99dd6037c7fbf10c231cc04a7e47
7
- data.tar.gz: f9870970c03f91dc8efb6cb029ca37e33a86f4a0922bfc3ce0d4aa283649b60cca903ba12d157e0cc37345eda4660d6b7c66167d4e3c2d7e25bd014b2e017161
6
+ metadata.gz: 2a37201a7d720ded49bc20c89efe5fbd685f1d25ef6b834cf019b713873383c4863a85efde93308a5d3e28931459a6956985ca2d1fcbe76de458ed9fb3a56fbd
7
+ data.tar.gz: 2a34dfee3c1fdc0b3d87c333f35117b7501d556976aa6c5aad02d919803faa9ef340066a7423638f733da0fa085b5dace613f947edeac533f207df198be60d3f
@@ -26,7 +26,7 @@ module Olivander
26
26
  actions = resource.is_a?(Class) ?
27
27
  (routed_resource.unpersisted_crud_actions | routed_resource.collection_actions.select{ |x| !x.crud_action }) :
28
28
  (resource.persisted? ? (routed_resource.persisted_crud_actions | routed_resource.member_actions.select{ |x| !x.crud_action }): [])
29
- actions = actions.reject{ |a| a.sym == for_action || !can?(a.sym, resource) }
29
+ actions = actions.reject{ |a| a.sym == for_action || EffectiveDatatables.authorization_method.call(controller, resource, a.sym) }
30
30
  preferred = %i[show edit destroy]
31
31
  [].tap do |arr|
32
32
  preferred.each do |p|
@@ -1,3 +1,3 @@
1
1
  module Olivander
2
- VERSION = "0.1.2.19"
2
+ VERSION = "0.1.2.20"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: five-two-nw-olivander
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2.19
4
+ version: 0.1.2.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Dennis