Sha256: 2ef07c7a345b50c4ed70b6f7770bcb4a275a18bfbc7aa251abef5c86c269dda5

Contents?: true

Size: 354 Bytes

Versions: 1

Compression:

Stored size: 354 Bytes

Contents

module Cas
  class ApplicationController < ActionController::Base
    protect_from_forgery with: :exception
    before_action :authenticate_user!
    before_action :set_current_user

    private

    def set_current_user
      @current_user = current_user
    end

    def set_domain
      @domain ||= (ENV["DOMAIN"] || request.domain)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cas-cms-0.1.0 app/controllers/cas/application_controller.rb