tramway-admin 1.7.8 → 1.7.8.1

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: 3853d33fef58959a023f924776a7d0c9ec2bcab93f7af0403b19313689591436
4
- data.tar.gz: 78e1f5e5ae3eb6bf274ae0011a04d17e371aebf8419e6f2d26c888b99c50a93b
3
+ metadata.gz: 8132809def3542e3ba3ac7a0d9bcb7984eb67ea0f0937292f910636ff55aff65
4
+ data.tar.gz: 4e168f09cc6cc91c2c3150ab69cf0dd9ee1b8bbdd5a5c3b108cf9e58e5974584
5
5
  SHA512:
6
- metadata.gz: 5a0479daa4c17c851755b71b07411287072418d49b64d127b4a48066ccae944e5d565235809ccaeaa028f0aa8cdabd7378e45499fb389f7645eedd9c8950b8cb
7
- data.tar.gz: 0b7278023197415bea97b0845c4935ec1fe70d4253fd9e66ec4b8272f3022d9173fa7593a63149553c82368b080e41031df0ba3d6c515ca486e9450322786e69
6
+ metadata.gz: ae0e4dfec61a50eab8901aff77b0cae82c466feeefa04d059ec1a0d366d632fda0770e82d1a126207117501a765fa82b7a36b8a8ec6109d942b1968f7dbe5ac2
7
+ data.tar.gz: ee184c754597416d5689c77fc5c0e633d438510251b3d7a697e06d583c31e8ab483ca08c0da49083c60f8d50722abbdd6146e165eef1d052e5d762f7370d4999
@@ -49,7 +49,12 @@ module Tramway
49
49
  end
50
50
 
51
51
  def singleton_models
52
- @singleton_models.values.flatten
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
53
58
  end
54
59
 
55
60
  def set_additional_buttons(buttons, project:)
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Admin
3
- VERSION = '1.7.8'
3
+ VERSION = '1.7.8.1'
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
4
+ version: 1.7.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov