locomotivecms/engine

View on GitHub
app/controllers/locomotive/base_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Locomotive
  class BaseController < ApplicationController

    include Locomotive::Concerns::SslController
    include Locomotive::Concerns::RedirectToMainHostController
    include Locomotive::Concerns::AccountController
    include Locomotive::Concerns::ExceptionController
    include Locomotive::Concerns::AuthorizationController
    include Locomotive::Concerns::StoreLocationController
    include Locomotive::Concerns::WithinSiteController

    layout 'locomotive/layouts/application'

    helper Locomotive::BaseHelper, Locomotive::ErrorsHelper

    self.responder = Locomotive::ActionController::Responder # custom responder

    respond_to :html

  end
end