five-two-nw-olivander 0.1.2.19 → 0.1.2.21

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: 7284d4aa04aaed8ef7631ecd5c68d4780070ca745690b5eccdcc33398312c865
4
- data.tar.gz: 929fe16028a179c0d6831cc853d8bcf96cb6341a670edca50ce954875b311ce1
3
+ metadata.gz: 539b6791367e3d96d805c01c479594b8df38866f9c15641cce69e9523d9556e7
4
+ data.tar.gz: fc09874c9cd028c1e477db9fd5c448a77334f8c777b607a7527c2793328d03f8
5
5
  SHA512:
6
- metadata.gz: bc366eae4724c2b807d0149fca02181d136dcfe06ddcb211dc963fc9058bc4c30932c401aa4230d5be83cdec63fc5a04638e99dd6037c7fbf10c231cc04a7e47
7
- data.tar.gz: f9870970c03f91dc8efb6cb029ca37e33a86f4a0922bfc3ce0d4aa283649b60cca903ba12d157e0cc37345eda4660d6b7c66167d4e3c2d7e25bd014b2e017161
6
+ metadata.gz: 88815b3f90b87c1dd9ea1312cbc6b41d2f8c99c503f9c37e4d3850ea6427e5031af6a8e06dd3fd016baf2c5cde5fec6372126e8a1a26008528b6ba14af570132
7
+ data.tar.gz: a73c30e128514624507f6ce823088a8d30fa97b9fa3831c8a919e246339e69fe5d518f022226b04181ccba0dd751a384f349052d03b0605900d5ba2f8656ec32
@@ -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, a.sym, resource) }
30
30
  preferred = %i[show edit destroy]
31
31
  [].tap do |arr|
32
32
  preferred.each do |p|
@@ -11,13 +11,13 @@
11
11
  .row
12
12
  - @datatable._charts.keys.each do |k|
13
13
  %div{ class: "#{col_class_num('xl', ks, 3)} #{col_class_num('lg', ks, 2)} #{col_class_num('md', ks, 6)} #{col_class_num('sm', ks, 6)}"}
14
- .card.card-secondary
14
+ .card.card-primary
15
15
  .card-header
16
16
  %h3.card-title= I18n.t([@datatable.class.name.underscore, 'charts', k].join('.'))
17
17
  .card-tools.text-right
18
18
  %button.btn.btn-tool{ type: :button, 'data-card-widget': :maximize }
19
19
  %i.fas.fa-expand
20
- .card-body
20
+ .card-body{ style: 'min-height: 220px' }
21
21
  = render_datatable_chart(@datatable, k)
22
22
 
23
23
  = content_for :datatable_charts
@@ -1,3 +1,3 @@
1
1
  module Olivander
2
- VERSION = "0.1.2.19"
2
+ VERSION = "0.1.2.21"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
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.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Dennis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-18 00:00:00.000000000 Z
11
+ date: 2023-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chartkick