app/controllers/tramway/auth/application_controller.rb in tramway-auth-1.1.0.3 vs app/controllers/tramway/auth/application_controller.rb in tramway-auth-1.2

- old
+ new

@@ -1,17 +1,13 @@ # frozen_string_literal: true -module Tramway - module Auth - class ApplicationController < ActionController::Base - layout ::Tramway::Auth.layout_path - protect_from_forgery with: :exception - before_action :application +class Tramway::Auth::ApplicationController < Tramway::Core::ApplicationController + layout ::Tramway::Auth.layout_path + protect_from_forgery with: :exception + before_action :application - def application - if ::Tramway::Core.application - @application = Tramway::Core.application&.model_class&.first || Tramway::Core.application - end - end + def application + if ::Tramway::Core.application + @application = Tramway::Core.application&.model_class&.first || Tramway::Core.application end end end