five-two-nw-olivander 0.1.2.20 → 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: 246a0885f08a65203cd38b0cf490510eb6422850f30d488421922cdd18105086
4
- data.tar.gz: ade950c3c647d7a5944465933c5b172d44d455da2622c5b3f63817f9721e9d2d
3
+ metadata.gz: 539b6791367e3d96d805c01c479594b8df38866f9c15641cce69e9523d9556e7
4
+ data.tar.gz: fc09874c9cd028c1e477db9fd5c448a77334f8c777b607a7527c2793328d03f8
5
5
  SHA512:
6
- metadata.gz: 2a37201a7d720ded49bc20c89efe5fbd685f1d25ef6b834cf019b713873383c4863a85efde93308a5d3e28931459a6956985ca2d1fcbe76de458ed9fb3a56fbd
7
- data.tar.gz: 2a34dfee3c1fdc0b3d87c333f35117b7501d556976aa6c5aad02d919803faa9ef340066a7423638f733da0fa085b5dace613f947edeac533f207df198be60d3f
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 || EffectiveDatatables.authorization_method.call(controller, resource, a.sym) }
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.20"
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.20
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