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 +4 -4
- data/lib/tramway/admin.rb +6 -1
- data/lib/tramway/admin/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8132809def3542e3ba3ac7a0d9bcb7984eb67ea0f0937292f910636ff55aff65
|
4
|
+
data.tar.gz: 4e168f09cc6cc91c2c3150ab69cf0dd9ee1b8bbdd5a5c3b108cf9e58e5974584
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae0e4dfec61a50eab8901aff77b0cae82c466feeefa04d059ec1a0d366d632fda0770e82d1a126207117501a765fa82b7a36b8a8ec6109d942b1968f7dbe5ac2
|
7
|
+
data.tar.gz: ee184c754597416d5689c77fc5c0e633d438510251b3d7a697e06d583c31e8ab483ca08c0da49083c60f8d50722abbdd6146e165eef1d052e5d762f7370d4999
|
data/lib/tramway/admin.rb
CHANGED
@@ -49,7 +49,12 @@ module Tramway
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def singleton_models
|
52
|
-
@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
|
53
58
|
end
|
54
59
|
|
55
60
|
def set_additional_buttons(buttons, project:)
|