Sha256: 71d3e06c240afc4279be9c827939d9d3a1192e023299b72251b3cbe964097ce9

Contents?: true

Size: 381 Bytes

Versions: 5

Compression:

Stored size: 381 Bytes

Contents

# frozen_string_literal: true

module Tramway
  module Landing
    class ApplicationController < ActionController::Base
      protect_from_forgery with: :exception
      before_action :application

      def application
        if ::Tramway.application
          @application = Tramway.application&.model_class&.first || Tramway.application
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tramway-landing-3.3.0.11 app/controllers/tramway/landing/application_controller.rb
tramway-landing-3.3.0.10 app/controllers/tramway/landing/application_controller.rb
tramway-landing-3.3.0.9 app/controllers/tramway/landing/application_controller.rb
tramway-landing-3.3.0.8 app/controllers/tramway/landing/application_controller.rb
tramway-landing-3.3.0.7 app/controllers/tramway/landing/application_controller.rb