tramway-admin 2.1.1.1 → 2.1.1.2

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: 0e197dfec025062fc017b4e359c9736887c0a58a22e40e2fcb52cbd5f5476e04
4
- data.tar.gz: ad1aac188a7d3ba683efda4f4f9b3f4960f4de96f473c7f8e99b60937ad90ebd
3
+ metadata.gz: 546beae8f4da6b321d696e39c446439ba17a2ed03de194baf6f2b66aeb603e7d
4
+ data.tar.gz: bcfc6a18161c2138d83b029ffd057caced1559b6128b85f67989dfcc1c1eb05c
5
5
  SHA512:
6
- metadata.gz: ba6ae3d8e3d43eb259cb863657ebbf27efc63edbefe64330775addea6ec64320f7891142c98439a8623e1118764fceb5f33b536b628ddb16689d1bb38cb45e68
7
- data.tar.gz: 1433dcc937e3b36753a64277bd4d714b1ee8db440fc2a401c662ff33ce7308d1c8169338105533d0120bbbb8fd5a0cb10d1ecef7624fbc90881346012d78b7d0
6
+ metadata.gz: e2b90fa18036b7608b6f931406c17f26f774fc2ee8b675c79c888faeab3cc74091ad4d4e093118e2b265752b06085d7f6a453e0bd17e4bf2f6860621aff586b6
7
+ data.tar.gz: f4b441e84898e5608ef190ea19a4e1b56b46c189bfe9369774a4a5bb48b4dc98ad2f896057d6fd07e1f0a6d82641146c7eeda098b6872f94ee74bf4e98dd9c58
@@ -1,4 +1,3 @@
1
- - association_state_machines = AASM::StateMachineStore.fetch(association_object.model.class).machine_names - ['default']
2
1
  - if (!association_object.is_a?(Array) || !association_object.empty?) && association_object.present?
3
2
  %tr{ id: "#{association.name}_#{association_object.id}" }
4
3
  %td
@@ -6,8 +5,9 @@
6
5
  %td
7
6
  = link_to association_object.name, record_path(association_object.id, model: association.options[:class_name])
8
7
  %td
9
- - association_state_machines.each do |state_method|
10
- = state_events_buttons association_object, state_method: state_method, model_param_name: :record, controller: 'tramway/admin/records', action: :update, parameters: { redirect: current_model_record_path(object.id), model: association_object.class.model_name }, button_options: { class: :smart_button }
8
+ - association_object.model.class.state_machines_names.each do |state_method|
9
+ - unless state_method == 'default'
10
+ = state_events_buttons association_object, state_method: state_method, model_param_name: :record, controller: 'tramway/admin/records', action: :update, parameters: { redirect: current_model_record_path(object.id), model: association_object.class.model_name }, button_options: { class: :smart_button }
11
11
  %td
12
12
  - if update_is_available? association_object, object
13
13
  = edit_button url: edit_record_path(association_object.id, model: association.options[:class_name], redirect: current_model_record_path(object.id)), button_options: { class: 'btn btn-xs btn-warning edit' } do
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Admin
5
- VERSION = '2.1.1.1'
5
+ VERSION = '2.1.1.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1.1
4
+ version: 2.1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-13 00:00:00.000000000 Z
11
+ date: 2021-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tramway-core
@@ -329,7 +329,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
329
329
  - !ruby/object:Gem::Version
330
330
  version: '0'
331
331
  requirements: []
332
- rubygems_version: 3.2.3
332
+ rubygems_version: 3.1.6
333
333
  signing_key:
334
334
  specification_version: 4
335
335
  summary: Engine for admin