tramway-core 1.9.9.1 → 1.9.9.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61d7a89123c54f6e342d185c84b4d7317f1dd1771324fa1f1d752aa51ba1aa2d
|
4
|
+
data.tar.gz: 0cc2098c6d0be24cfa8afa19fd393edf72a158433bb2eb6f26d8e38dbed0c3da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 834f55359ee09ab41ff064fdd712a222dc3f40015cef8ef500c025625f37ea4a4995b6560733170a87eb6debb261bdb5c5018bfc423b2b7c927e2304053d46ba
|
7
|
+
data.tar.gz: 0211d1bb8db283cf35d3e47524aef40080bcd5d947f517ed1681b98bb0794a17e508082b7277b1435ec668602e76f05200dd6f228c8903554b8552ff79a75265
|
@@ -56,8 +56,12 @@ class Tramway::Core::ApplicationDecorator
|
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
+
def model_class
|
60
|
+
self.to_s.sub(/Decorator$/, '').constantize
|
61
|
+
end
|
62
|
+
|
59
63
|
def model_name
|
60
|
-
try(:object)&.class&.model_name ||
|
64
|
+
try(:object)&.class&.model_name || model_class.model_name
|
61
65
|
end
|
62
66
|
end
|
63
67
|
|
data/lib/tramway/core/version.rb
CHANGED