tramway-core 2.0.0.7 → 2.0.0.8

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: 137fb41cd75227cbe803642c65d1ce0f20f9338a194b0f17c65186a0c1906a6c
4
- data.tar.gz: 0ead8fe299c40fef0351c33d3a68066be770e401b57af6734ead413c25c11221
3
+ metadata.gz: 1b4f2ffeb13dc706999347f1eddd9d4c641246001ed9bf8a17f788f1f3446a04
4
+ data.tar.gz: 5fbc456d9e56b81ce63de7ea747495a1c7ad7733b392bfbf0b96e58069f4bd51
5
5
  SHA512:
6
- metadata.gz: b8dcd231608a03cbe4789c3849dc888e1002a1f4b189857bfb0864d8f0485ad43d7f50490d6b87bc0129a02e8588df8f59da7f312da290985d9007f106e1a0a9
7
- data.tar.gz: f2bc8903e50247e1fe099631e402aac312e5b896b34deeebf7c140a99fb552a452e50d3382caeeb317342cf00fbce5cf1c3ec5f18424afba559af2bc5571a1e4
6
+ metadata.gz: 6e05acf41bfb8507c783712e40744d578cd2ae77e9b7aef6bbc1e00ff00ee0ea61e055d2098f9e6dafae4bcd098b81be98dbcb62a3c4672d9579391eb6729f22
7
+ data.tar.gz: 384ace393037db031d02c021739ba71cb68ef19da4c5170c1ba3daa52c14f7d70326518a13d7108e5d58c3cedf40c70363e431b04ac562f24fad16dfa2491bee
@@ -5,7 +5,9 @@ class Tramway::Core::ApplicationController < ActionController::Base
5
5
  before_action :load_extensions
6
6
 
7
7
  def application
8
- @application = ::Tramway::Core.application_object
8
+ if ::Tramway::Core.application
9
+ @application ||= Tramway::Core.application&.model_class&.first || Tramway::Core.application
10
+ end
9
11
  end
10
12
 
11
13
  def load_extensions
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Core
5
- VERSION = '2.0.0.7'
5
+ VERSION = '2.0.0.8'
6
6
  end
7
7
  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: 2.0.0.7
4
+ version: 2.0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-02-25 00:00:00.000000000 Z
12
+ date: 2021-03-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: audited