cm-admin 1.4.8 → 1.4.9

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: 739e610f8a75252258bd23ad714ba42235f099b2966450609d811a4a87ad8f6b
4
- data.tar.gz: cb48e10324ba8876d10299e5f80ac34ed623a7c35ea768415587c81f87e42fb1
3
+ metadata.gz: f3bdeb9aab9e5eb7d88bfa184cf5fdd2282650bbc065e1f5139b3c417f3fed34
4
+ data.tar.gz: 228f5e430f7066eb1c1db1a83ddd21700e9ca7030bffef76cbd45c87ac543680
5
5
  SHA512:
6
- metadata.gz: 4106dee29b565d27cea6ea4f10d3775d8d3cfbb8cb2e22b9dfcfab0f23eae421f74602b516053e7ce1d84e6a742173e1780475a28196ca3dd23948503f0e1ae2
7
- data.tar.gz: f0c32a23b1c364d2b5028f71be1e4ab4105f9316ef2585f68eeb11a814ed519548885fcd2292be7f1fb892e17eb151a82df25080b51cbf212678506a668880c1
6
+ metadata.gz: 50a43eb5dbc704f6b7018260d3d844ba6f7ba9cf2d465cfc16b72d594b879883a90615ef5985df225d6db54315b449cb2edfbebb4c26392770ca7864a8dfbf47
7
+ data.tar.gz: c91fc2f56e355271d49009e991e00156b29e5d8ccab21d64b0fe787595c88d12a0a1eb8b83ea874014b1f7c6a5f8a4d4199b87ecac6bec26dc74c9bdf7efee0a
@@ -1,6 +1,6 @@
1
1
  - custom_action_with_modals = @model.available_actions.select{ |act| act if act.display_type == :modal && act.action_type == :custom }
2
2
  - bulk_action_with_modals = @model.available_actions.select{ |act| act if act.display_type == :modal && act.action_type == :bulk_action }
3
- - destroy_action = available_actions(@model, @ar_object, 'destroy')
3
+ - destroy_action = @ar_object ? available_actions(@model, @ar_object, 'destroy') : nil
4
4
  - if @associated_model
5
5
  - custom_action_with_modals += @associated_model.available_actions.select{ |act| act if act.display_type == :modal }
6
6
  - if @current_action&.name == 'index'
@@ -7,7 +7,7 @@
7
7
  .modal-body
8
8
  .custom-modal-body
9
9
  .modal-info data-section="bulk-action"
10
- | Are you sure you want to delete this #{@model.name.classify}
10
+ | Are you sure you want to delete this #{@model.name.classify}?
11
11
  .modal-footer
12
12
  = button_to cm_admin.send("#{@model.name.underscore}_destroy_path", ar_object), method: :delete, class: "btn btn-primary" do
13
13
  span
@@ -1,3 +1,3 @@
1
1
  module CmAdmin
2
- VERSION = '1.4.8'
2
+ VERSION = '1.4.9'
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: 1.4.8
4
+ version: 1.4.9
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: 2024-04-03 00:00:00.000000000 Z
13
+ date: 2024-04-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: caxlsx_rails
@@ -498,7 +498,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
498
498
  - !ruby/object:Gem::Version
499
499
  version: '0'
500
500
  requirements: []
501
- rubygems_version: 3.2.3
501
+ rubygems_version: 3.5.4
502
502
  signing_key:
503
503
  specification_version: 4
504
504
  summary: CmAdmin is a robust gem designed to assist in creating admin panels for Rails