app/controllers/tramway/landing/application_controller.rb in tramway-landing-1.4.7.3 vs app/controllers/tramway/landing/application_controller.rb in tramway-landing-1.4.7.4

- old
+ new

@@ -1,11 +1,14 @@ module Tramway module Landing class ApplicationController < ActionController::Base protect_from_forgery with: :exception + before_action :application def application - @application = ::Tramway::Core::Application.first + if ::Tramway::Core.application + @application = Tramway::Core.application&.model_class&.first || Tramway::Core.application + end end end end end