app/controllers/tramway/user/application_controller.rb in tramway-user-1.1.3 vs app/controllers/tramway/user/application_controller.rb in tramway-user-1.1.4

- old
+ new

@@ -4,10 +4,12 @@ layout ::Tramway::User.layout_path protect_from_forgery with: :exception before_action :application def application - @application = ::Tramway::Core.application&.model_class&.first + if ::Tramway::Core.application + @application = Tramway::Core.application&.model_class&.first || Tramway::Core.application + end end end end end