tramway-admin 1.22.0.2 → 1.22.0.3

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: 9880f769ed83fcb57d7d8a4035bfd3370a84fbca3b183dcf40c9bcfc40b72ae8
4
- data.tar.gz: 75dfcb0217528d95c2991b7050a929e2e1aac83348d6976c0876ea3a7f8b287d
3
+ metadata.gz: 986df7b26b2f9fd72b5675d207b228053a8723bc6653c637ac6a1fb832b05687
4
+ data.tar.gz: e56de5e6064bf474adbaf4429c76cdc9e10676b0ae014be02a1067fcccd8b2a9
5
5
  SHA512:
6
- metadata.gz: 8ecfc9a9023c51e76e0b99605837230d66f46bb377562c74c6d840f3074a5dde70c0b2d750c27b0c79292c1079dd6562457277a4ff6e257e879698ac0e490355
7
- data.tar.gz: 8b670e18cf41556b3d45532dbddd212e2b2ba5e4d99a1d52909fde8a3d7c35462493277de36b5a7e9cff1e86281f73528fdf04fd911ddbda4cb6353d453fd98f
6
+ metadata.gz: e6a2519ae4dffea1e7764f55a46d5a17fde733570f7fe0e68efac75763763d9024f5ddd4196c263a910e04422a8eddc46473cc6791881dace5234e827713a966
7
+ data.tar.gz: 1d4587d91a4b5e0ee4198b46911bc9c6a35e71db5af5541ad257d2d846fd06cc78b86241c77edbc1451debde1f350ea8f1214060aab420e665424349207923f8
@@ -31,7 +31,7 @@ module Tramway::Admin
31
31
  "#{model_name || model_class}Decorator".constantize
32
32
  end
33
33
 
34
- def get_collection(_model_class)
34
+ def get_collection
35
35
  decorator_class.collections
36
36
  end
37
37
 
@@ -26,5 +26,5 @@
26
26
  .btn-group{ data: { toggle: :buttons } }
27
27
  - record.model.class.state_machines.keys.each do |state_method|
28
28
  - unless state_method == :state
29
- = state_events_buttons record, state_method: state_method, model_param_name: :record, controller: 'tramway/admin/records', action: :update, parameters: { redirect: current_model_records_path(page: params[:page], scope: params[:scope], focus: focus_selector(index)), model: record.class.model_name }, button_options: { class: :smart_button }
29
+ = state_events_buttons record, state_method: state_method, model_param_name: :record, controller: 'tramway/admin/records', action: :update, parameters: { redirect: current_model_records_path(page: params[:page], scope: params[:scope], filter: params[:filter], focus: focus_selector(index)), model: record.class.model_name }, button_options: { class: :smart_button }
30
30
  = paginate @records, theme: 'twitter-bootstrap-4'
@@ -2,7 +2,7 @@
2
2
  - current_title = default_page_title || plural(model_class).capitalize
3
3
  - title current_title
4
4
  - state_method ||= :state
5
- - tabs = get_collection model_class
5
+ - tabs = get_collection
6
6
  .page-header
7
7
  .row
8
8
  .col-md-6
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Admin
5
- VERSION = '1.22.0.2'
5
+ VERSION = '1.22.0.3'
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: 1.22.0.2
4
+ version: 1.22.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-02 00:00:00.000000000 Z
11
+ date: 2020-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootstrap-kaminari-views