Sha256: 58597ab538e8730b644c5feddf729b68bebb38c18c78e0afb4c002fc64344430

Contents?: true

Size: 338 Bytes

Versions: 3

Compression:

Stored size: 338 Bytes

Contents

# frozen_string_literal: true

class Tramway::Core::ApplicationController < ActionController::Base
  before_action :application
  before_action :load_extensions

  def application
    @application = ::Tramway::Core.application_object
  end

  def load_extensions
    ::Tramway::Extensions.load if defined? ::Tramway::Extensions
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tramway-core-1.17.2.5 app/controllers/tramway/core/application_controller.rb
tramway-core-1.17.2.4 app/controllers/tramway/core/application_controller.rb
tramway-core-1.17.2.3 app/controllers/tramway/core/application_controller.rb