Sha256: 9e267620aa17959e8db354e019c40fb684657b98e474cbd839dfcfb1975b3d6b

Contents?: true

Size: 406 Bytes

Versions: 8

Compression:

Stored size: 406 Bytes

Contents

module Tramway
  module Auth
    class ApplicationController < ActionController::Base
      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
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
tramway-auth-1.1.0.1 app/controllers/tramway/auth/application_controller.rb
tramway-auth-1.1 app/controllers/tramway/auth/application_controller.rb
tramway-auth-1.0.2.1 app/controllers/tramway/auth/application_controller.rb
tramway-auth-1.0.2 app/controllers/tramway/auth/application_controller.rb
tramway-auth-1.0.1.2 app/controllers/tramway/auth/application_controller.rb
tramway-auth-1.0.1.1 app/controllers/tramway/auth/application_controller.rb
tramway-auth-1.0.1 app/controllers/tramway/auth/application_controller.rb
tramway-auth-1.0 app/controllers/tramway/auth/application_controller.rb