cm-admin 0.8.4 → 0.8.5

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: a8341533113fd9b7a9192af76438144a864b42449e6a2a6f6f805a36b187bae7
4
- data.tar.gz: 4a48bf48899e59f0734f81a836eb22534f39528c5d007abd9ec5c62aba6de7bf
3
+ metadata.gz: 8f213806205dddde4c26ef831ca86ff31fdd612f054ca899d579276abec08af9
4
+ data.tar.gz: 6cfd6cacae15a3939dc6f0f45c898e58d0276836db665a84823d142e8f3806f6
5
5
  SHA512:
6
- metadata.gz: b7f866ab3ecdca38fe1296549271b69d49745f001c57f3119d96af0626cd1d966da51a4f0a3d0ac31c034a3fbb4ee788072c8278d8c63697230fce034e7e6002
7
- data.tar.gz: 42a81533540eadfc057d86d199a1cf8116e7cdb5e18a37a1a8a3c0ecb44e4d63c2e76c65061a196b3a25ef9bef5f99d9aeb1fe82a0a01d860d43fa429300d2ba
6
+ metadata.gz: 8e2cc59b2ed25bcb3041065288a352352d74be6ddfe44dc643aeabd748bb3779615418f60eab139e6757a5f2be9da28430a411ea919edc7e1f762765a98a30e6
7
+ data.tar.gz: 1877097421a3bb47a51d2483c7361d1d906502306f98732150706d31f933535d17e0e196927c84d702c7e3103d96f98e4cd108b14cb288e8fcac1a610cb8af8d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cm-admin (0.8.4)
4
+ cm-admin (0.8.5)
5
5
  caxlsx_rails
6
6
  cocoon (~> 1.2.15)
7
7
  csv-importer (~> 0.8.2)
@@ -23,7 +23,7 @@
23
23
  li
24
24
  .popup-option.pointer data-bs-toggle='modal' data-bs-target='#exportmodal'
25
25
  span Export
26
- - if @model.importer
26
+ - if @model.importer && has_valid_policy(@model.name, :importable)
27
27
  = link_to 'Import', cm_admin.send(:"#{@model.name.underscore}_import_path"), class: 'primary-btn ml-2'
28
28
  - new_action = @model.available_actions.select{|act| act if act.action_type.eql?(:default) && act.name.eql?('new')}
29
29
  - if new_action.any? && policy([:cm_admin, @model.name.classify.constantize]).new?
@@ -1,3 +1,3 @@
1
1
  module CmAdmin
2
- VERSION = "0.8.4"
2
+ VERSION = "0.8.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cm-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.4
4
+ version: 0.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - sajinmp
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2022-10-17 00:00:00.000000000 Z
13
+ date: 2022-10-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: caxlsx_rails