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: e5716c8913340bab12159122a9d825a97f63cbaac449407ee88c0a9b0cfa86ca
4
- data.tar.gz: ab3258396d769ab09675a5f8bff1fd1aee6ada190cccf51ba66f420530f79f5e
3
+ metadata.gz: 61d7a89123c54f6e342d185c84b4d7317f1dd1771324fa1f1d752aa51ba1aa2d
4
+ data.tar.gz: 0cc2098c6d0be24cfa8afa19fd393edf72a158433bb2eb6f26d8e38dbed0c3da
5
5
  SHA512:
6
- metadata.gz: 42f59d3b935ad492c469d23b01d507b15ad1c8f33f4907a2c278c1b6f6572eabc2798640015550fbfbf3f00486ec6be5554e708f43564a8b56501b06a9ce9b9d
7
- data.tar.gz: 4f435db982fb146245ddcc52faff570602065c208341487f9fa393b70f78facce434f6931606cf04eb67809f4bc8c8424341ee0fc6ea749c057f2816c156b25a
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 || self.to_s.sub(/Decorator$/, '').constantize.model_name
64
+ try(:object)&.class&.model_name || model_class.model_name
61
65
  end
62
66
  end
63
67
 
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Core
3
- VERSION = '1.9.9.1'
3
+ VERSION = '1.9.9.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.9.1
4
+ version: 1.9.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov