tramway-api 1.8.6.9 → 1.8.6.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eac6742207080fc85dd8b83884206f932e8b92dd9ac29a9ee748274bff7f823a
|
|
4
|
+
data.tar.gz: 3fc429d2b9e90a4cd4b1349aa03541057e60147f59a8312cd1bb39e390cd62b3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8fc3526803e3cc00c3eebcc1728042e9dde54fa6f1c9b8e9df8a21960544afaac4b0a2f9b899b85380977fafa0c28670eac9a9c21fc15c162207c77d5dccd1b3
|
|
7
|
+
data.tar.gz: cba7da12631b2f8010348dc1f460ff1bfaccdcb4586badb78163b21ea55be708337ce596133c65a59c35c70f8d45c4cf4948beb3f015e06f75ade4b81bc68ca4
|
|
@@ -112,17 +112,11 @@ module Tramway
|
|
|
112
112
|
protected
|
|
113
113
|
|
|
114
114
|
def application_name
|
|
115
|
-
|
|
115
|
+
@application ||= Tramway::Core.application&.model_class&.first || Tramway::Core.application
|
|
116
|
+
begin
|
|
116
117
|
@application.name
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
@application = Tramway::Core.application&.model_class&.first || Tramway::Core.application
|
|
120
|
-
end
|
|
121
|
-
if @application.present?
|
|
122
|
-
@application.name
|
|
123
|
-
else
|
|
124
|
-
raise("Tramway::Api @application not initialized, Tramway::Core.application: #{::Tramway::Core.application}, model_class: #{Tramway::Core.application&.model_class }")
|
|
125
|
-
end
|
|
118
|
+
rescue
|
|
119
|
+
raise("Tramway::Api @application not initialized, Tramway::Core.application: #{::Tramway::Core.application}, model_class: #{Tramway::Core.application&.model_class }")
|
|
126
120
|
end
|
|
127
121
|
end
|
|
128
122
|
|
data/lib/tramway/api/version.rb
CHANGED