tramway-admin 1.1.5.1 → 1.1.6

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: 60270dd39dbfcee1533273a508b32c4b150830ea59397da909d4ef1f69a9b26c
4
- data.tar.gz: d4ba3cd51f39f5a418f586fbc64d190a5a13ec083ceb7ca5f61ee039b924665f
3
+ metadata.gz: c6b236a2d8083262463b1a3672bd0acdb1ab9de1c38f62cc32392d03d1668e7d
4
+ data.tar.gz: 03a8cdd61f769a962be3c77a9ee19e6dae5ee1fdbb03a062978369606d6a1a30
5
5
  SHA512:
6
- metadata.gz: 5d279df15248b9184bac572b73930f704d7e800cc1cf9603b9bdd285f59765d6141070770966706774e15a11b82de4ff5d0edf00fb84881521087410b6cf9c64
7
- data.tar.gz: 8379c0346a66dfd96627d4b64af9078e2fc7bd8a9b985f1a9d17af4d3649b2837d9d9174c4dcfe8c4bb7542cb019e7e671cf6b8120e4f9773fa8f85cbd74f6ad
6
+ metadata.gz: 5004add40b9f948c1397d335c9dd29a64bbff6b8317e48e20026af602c839d69192c52f40d6a7b1eb9782e9a5172b2f1d32f54b1f788f52248112491aa9adb56
7
+ data.tar.gz: 29b9ffc4d74aef5100c68e00d460f194f5f4175312fc6d5e13de4f4a6f81cbbc7a9ee7605966b3882f012d4843ee16fc8e26b7ae6cd27ac4991a0fe941b729bb
@@ -17,3 +17,6 @@
17
17
  = model_class.human_attribute_name attribute_name
18
18
  %td
19
19
  = value
20
+ %td
21
+ - if attribute_name != 'state' && @record.model.class.state_machines.keys.include?(attribute_name.to_sym)
22
+ = state_events_buttons @record, state_method: attribute_name, model_param_name: :record, route_method: :current_model_record_path, parameters: { redirect: current_model_records_path }
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Admin
3
- VERSION = '1.1.5.1'
3
+ VERSION = '1.1.6'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5.1
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov