tramway-core 1.9.9 → 1.9.9.1

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: 4a17277f2e3ba427470549c3a6a7e8ea417792f5ea39cf76426272fa0151bb2a
4
- data.tar.gz: 2cc31e2b5db50ae70356e4234cb1b3d535f1d31323473c35e6f78dbad257a08d
3
+ metadata.gz: e5716c8913340bab12159122a9d825a97f63cbaac449407ee88c0a9b0cfa86ca
4
+ data.tar.gz: ab3258396d769ab09675a5f8bff1fd1aee6ada190cccf51ba66f420530f79f5e
5
5
  SHA512:
6
- metadata.gz: 71e359b2fc0af9730269f9d7f1c1b3b9545d480d22c9456cd564e06c5f86b83ca373da5942e01eebaff7ec0ac041b8361c2fd2c29aa4bd52d0ad807f36c467b3
7
- data.tar.gz: 1d2cdf03cdd3debe3d9e92611024a4ba828d5756ed5607852182f865cd7d9a57a6a99f5227533120b98decdd653a3b2c5a0cc2b911956d969e3edfb690965c98
6
+ metadata.gz: 42f59d3b935ad492c469d23b01d507b15ad1c8f33f4907a2c278c1b6f6572eabc2798640015550fbfbf3f00486ec6be5554e708f43564a8b56501b06a9ce9b9d
7
+ data.tar.gz: 4f435db982fb146245ddcc52faff570602065c208341487f9fa393b70f78facce434f6931606cf04eb67809f4bc8c8424341ee0fc6ea749c057f2816c156b25a
@@ -55,6 +55,10 @@ class Tramway::Core::ApplicationDecorator
55
55
  end
56
56
  end
57
57
  end
58
+
59
+ def model_name
60
+ try(:object)&.class&.model_name || self.to_s.sub(/Decorator$/, '').constantize.model_name
61
+ end
58
62
  end
59
63
 
60
64
  delegate :id, to: :object
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Core
3
- VERSION = '1.9.9'
3
+ VERSION = '1.9.9.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.9
4
+ version: 1.9.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-15 00:00:00.000000000 Z
11
+ date: 2019-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: reform-rails
@@ -394,7 +394,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
394
394
  version: '0'
395
395
  requirements: []
396
396
  rubyforge_project:
397
- rubygems_version: 2.7.6
397
+ rubygems_version: 2.7.7
398
398
  signing_key:
399
399
  specification_version: 4
400
400
  summary: Core for all Tramway Rails Engines