Sha256: 6c58391cc161319f8afde116d75ad0e8acdaf7aa35509d39ef64cb8e71cb9e88
Contents?: true
Size: 335 Bytes
Versions: 3
Compression:
Stored size: 335 Bytes
Contents
class ApplicationController < ActionController::Base # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. protect_from_forgery with: :exception # Lock controllers by default lock_access private def current_clearance_level session[:role] || :guest end end
Version data entries
3 entries across 3 versions & 1 rubygems