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 +4 -4
- data/lib/tramway/admin.rb +1 -6
- 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: 40fd11670e852d464d05f382575ea24c437fd73a7312bc5cd6d9ffc90b8dd1fa
|
4
|
+
data.tar.gz: ab278a56968e3d64c0c7a3ce85704aebe148ac5e1ebd38f11590f18da8cb213a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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:)
|