tramway-admin 1.22.0.4 → 1.23

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: de34c9bf61bcfb464b74469d72c1ce3badfeb2a313921c72718883342a8b8c42
4
- data.tar.gz: 147e088bb7a52ddc48832e3994b6771ac30cd5ade237034a63faed2c96054af0
3
+ metadata.gz: 9221ad556d986efcae8b262f3c511c3fa89100dfd14fcc6ad8451e02627adad7
4
+ data.tar.gz: 057f44f931ebe0f2830bc1a88c9c8c3810c18a91d544e43119aac7e493a9053c
5
5
  SHA512:
6
- metadata.gz: 9a441b8b8513fb7d2fc75c3733e4f0c405e586b3cf9a2102217bea3cf2795600ec7d8c7bb399141ba0290441de2ab1b4f951cc286e7b4cdf55a3481429f3da13
7
- data.tar.gz: 74f6eda7418e1d7aa69b7bb68078156bd3a99fa9f45d8585079259d343dd1a983b38a205fc7a5acf75f383865f01f79e87c967977ad82760062cc4eadc423aff
6
+ metadata.gz: abb358fcec58ae81631e66cbee4ab9eb5e3299e4eca9d620be4653b7b04b9d2fbc93fc7918eeb4da843bcbbcfcc3f3dffeb64dcbc228e1b9090ec9ffc0b0a36e
7
+ data.tar.gz: 929c63d18f927c91619279e7422949501e0949e0c0dbb440c4904e4869be7710c7195566997d2290fde4e55b4fe8a3f2f989dca7d1415e395ba3f11eea1ddfca
@@ -74,11 +74,7 @@ module Tramway
74
74
  end
75
75
 
76
76
  def admin_form_class
77
- if model_class.to_s.include? 'Tramway'
78
- form_class_name
79
- else
80
- "::Admin::#{model_class}Form".constantize
81
- end
77
+ "::#{current_user.role.camelize}::#{model_class}Form".constantize
82
78
  end
83
79
 
84
80
  def model_given?
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Admin
5
- VERSION = '1.22.0.4'
5
+ VERSION = '1.23'
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.4
4
+ version: '1.23'
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-06 00:00:00.000000000 Z
11
+ date: 2020-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootstrap-kaminari-views