Sha256: e622ae6739c6245312e5a44ab4365d6714a90a9583af36e6d7d5474269482c01

Contents?: true

Size: 497 Bytes

Versions: 1

Compression:

Stored size: 497 Bytes

Contents

module Jobshop
  class ApplicationController < ActionController::Base
    include Pundit

    layout :layout_for_application

    protect_from_forgery

    before_action :authenticate_user!

  #  after_action :verify_authorized, except: :index
  #  after_action :verify_policy_scoped, :only => :index

    def layout_for_application
      if devise_controller? && controller_name == "sessions"
        "jobshop/unauthenticated"
      else
        "jobshop/application"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jobshop-0.0.11 app/controllers/jobshop/application_controller.rb