Sha256: 064e39754b528a95cb284a137b74e1d4b99ab36bc0ab14c7840c7ea34e15c0eb

Contents?: true

Size: 387 Bytes

Versions: 5

Compression:

Stored size: 387 Bytes

Contents

# frozen_string_literal: true

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
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tramway-auth-2.0.2 app/controllers/tramway/auth/application_controller.rb
tramway-auth-2.0.1 app/controllers/tramway/auth/application_controller.rb
tramway-auth-1.2.1.1 app/controllers/tramway/auth/application_controller.rb
tramway-auth-1.2.1 app/controllers/tramway/auth/application_controller.rb
tramway-auth-1.2 app/controllers/tramway/auth/application_controller.rb