tramway-landing 1.4.7.3 → 1.4.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e26738142d72cb659f8bb8c17eeff239eedcd57bb9f875da5ee5d3dbc340fbff
4
- data.tar.gz: 904a7c28aa5995611070e5343d973ea1124143a22389be2a888633194570684e
3
+ metadata.gz: 69ff995f5f833554843602c28dd96c1d78f74816c70eb130e3597752828b2513
4
+ data.tar.gz: 3abbecfd51573e18988521296976343d770c99f5dcafea14fdb0a007ef11e958
5
5
  SHA512:
6
- metadata.gz: 705530ec5d079f5d8f7671631382b1bf35b5b6d068ed1bdb4b0a84511c64104fcb63c2ed7b5049b5b7afa67ec30fa50b7a347dfe6acc90671c7612bff7bb7d55
7
- data.tar.gz: 555444348588af7addc37bd481d05ab1d4ddf2180f7232b4c8c27056210747c20ad36c4b85c079ec15b0e643ff3e3bee58761fca132e6f4abe4da56cb2c0201c
6
+ metadata.gz: ef588ed525178b82360dd36049de26be1c99e7ce36e41408fc3239cc86b3a2de4198c6de4d8dcc8c8bd38f6350a5658d1a0eec931b65eb16c04f58b8a601308c
7
+ data.tar.gz: 48e7d4037b25e5d6b099b4c8353fb38848f33cc54f06a0fe16ec4e7b23bbdbcf9fb3ef15ba62a9de072a33e0ee5f6c75278631783c9f35c62390198894fe0553
@@ -2,9 +2,12 @@ module Tramway
2
2
  module Landing
3
3
  class ApplicationController < ActionController::Base
4
4
  protect_from_forgery with: :exception
5
+ before_action :application
5
6
 
6
7
  def application
7
- @application = ::Tramway::Core::Application.first
8
+ if ::Tramway::Core.application
9
+ @application = Tramway::Core.application&.model_class&.first || Tramway::Core.application
10
+ end
8
11
  end
9
12
  end
10
13
  end
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Landing
3
- VERSION = '1.4.7.3'
3
+ VERSION = '1.4.7.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-landing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.7.3
4
+ version: 1.4.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov