tramway-core 1.14.7 → 1.14.7.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: f46965fe008bd76fc777840560abb3a2a5f079d469ac1ac909657cb8c7e23d1f
4
- data.tar.gz: 12a6b2c2716dd7876a98ae216cc25aee95a3916f3b117bbaf5c426e91a2c2992
3
+ metadata.gz: 342f7e0203c9760eb999b73aab0851970249cb4842b372f190e7b64f80072ba1
4
+ data.tar.gz: 8d65b2c788927529f8c0e7202ada01fd18ffd26e3a8b16a1f0297c6ba04bbc92
5
5
  SHA512:
6
- metadata.gz: 19f8b496bfc15c82c7df8d9e371abc6a76b06452d1b44802979cd0b2bc36f26f64df58b76476d1fdce233ec26e51debc29c0be482d62685deb0933440ef71b9f
7
- data.tar.gz: 7b8fcf18061b22fc989a77bf02c8b595d2b86ef1a2148c987417e161f17555a4263adb1b52be9cd517acf9136cd48bfaa5e92009656e0c75be88a7ecee11e8d0
6
+ metadata.gz: 3fa66055ce40a7e966fb66196243cb20e21f41be28c59682cce821b0d78473598da6d39e68837478d62ae66f15ed19382ca8b64748db00b67fd11b2701b39936
7
+ data.tar.gz: db16cc89c4230e09804443baa8024b98ae0c50a827718ad366041821d19d26202cbd144a0ccc64d859258884793b6e58c5fcf59f7cf093e32f388417e28e921d
@@ -20,7 +20,15 @@ module Tramway
20
20
  end
21
21
 
22
22
  def application_object
23
- @application&.model_class.present? ? @application.model_class.first : @application
23
+ if @application&.model_class.present?
24
+ begin
25
+ @application.model_class.first
26
+ rescue
27
+ nil
28
+ end
29
+ else
30
+ @application
31
+ end
24
32
  end
25
33
 
26
34
  attr_reader :application
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Core
5
- VERSION = '1.14.7'
5
+ VERSION = '1.14.7.1'
6
6
  end
7
7
  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.14.7
4
+ version: 1.14.7.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: 2020-01-12 00:00:00.000000000 Z
11
+ date: 2020-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: audited