tramway-landing 1.4.7.3 → 1.4.7.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69ff995f5f833554843602c28dd96c1d78f74816c70eb130e3597752828b2513
|
4
|
+
data.tar.gz: 3abbecfd51573e18988521296976343d770c99f5dcafea14fdb0a007ef11e958
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|