tramway-admin 1.7.8.1 → 1.7.8.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: 8132809def3542e3ba3ac7a0d9bcb7984eb67ea0f0937292f910636ff55aff65
4
- data.tar.gz: 4e168f09cc6cc91c2c3150ab69cf0dd9ee1b8bbdd5a5c3b108cf9e58e5974584
3
+ metadata.gz: 40fd11670e852d464d05f382575ea24c437fd73a7312bc5cd6d9ffc90b8dd1fa
4
+ data.tar.gz: ab278a56968e3d64c0c7a3ce85704aebe148ac5e1ebd38f11590f18da8cb213a
5
5
  SHA512:
6
- metadata.gz: ae0e4dfec61a50eab8901aff77b0cae82c466feeefa04d059ec1a0d366d632fda0770e82d1a126207117501a765fa82b7a36b8a8ec6109d942b1968f7dbe5ac2
7
- data.tar.gz: ee184c754597416d5689c77fc5c0e633d438510251b3d7a697e06d583c31e8ab483ca08c0da49083c60f8d50722abbdd6146e165eef1d052e5d762f7370d4999
6
+ metadata.gz: 3910b5b3fc7eb8f07300154872ae815bf5fb49e0f24e8ff1272815bfe04607102c14ec095a1988e20e135a1b464f99ac1c5d91543231632dad2c7e2fb3b5129f
7
+ data.tar.gz: 8f2a3067b9c204a59d208ce645bdb69e9059aa4d36d1bbbf6d8e06aa0e36de9a5521859357e047a0eaaa06024ee0654088692070db91424260fef8be683e91ae
data/lib/tramway/admin.rb CHANGED
@@ -49,12 +49,7 @@ module Tramway
49
49
  end
50
50
 
51
51
  def singleton_models
52
- if @singleton_models
53
- @singleton_models.values.flatten
54
- else
55
- error = Tramway::Error.new(plugin: :admin, method: :singleton_models, message: ('List of singleton_models is empty. You should add some of them using `::Tramway::Admin.set_singleton_models(*list_of_classes, project: :your_project_name)` in `config/initializers/tramway.rb`'))
56
- raise error.message
57
- end
52
+ @singleton_models&.values&.flatten || []
58
53
  end
59
54
 
60
55
  def set_additional_buttons(buttons, project:)
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Admin
3
- VERSION = '1.7.8.1'
3
+ VERSION = '1.7.8.2'
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.7.8.1
4
+ version: 1.7.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov