abstract class Application

Included Modules

Direct Known Subclasses

Defined in:

controllers/application.cr

Constant Summary

AFTER = {} of Nil => Nil
AROUND = {} of Nil => Nil
BEFORE = {set_request_id => {nil, nil}, set_date_header => {nil, nil}, require_login => {nil, nil}, require_read => {[index, show], nil}, require_write => {nil, [index, show]}} of Nil => Nil
FORCE = {:force => {nil, nil}} of Nil => Nil
LOCAL_AFTER = {} of Nil => Nil

function => options

LOCAL_AROUND = {} of Nil => Nil

function => options

LOCAL_BEFORE = {set_request_id => {nil, nil}, set_date_header => {nil, nil}, require_login => {nil, nil}, require_read => {[index, show], nil}, require_write => {nil, [index, show]}} of Nil => Nil

function => options

LOCAL_FORCE = {:force => {nil, nil}} of Nil => Nil

function => options

LOCAL_RESCUE = {} of Nil => Nil

function => options

LOCAL_ROUTES = {} of Nil => Nil

function => options

LOCAL_SKIP = {} of Nil => Nil

function => options

Log = ::App::Log.for("controller")
NAMESPACE = ["/application"]

default namespace based on class

RESCUE = {} of Nil => Nil
ROUTES = {} of Nil => Nil
SKIP = {} of Nil => Nil

Class Method Summary

Instance Method Summary

Macro Summary

Instance methods inherited from module SessionUtils

current_user(username : String)
current_user
current_user
, end_session end_session, notice(message : String)
notice
notice
, notice? notice?, pack_string(txt : String) pack_string, require_login require_login, unpack_string(txt : String) unpack_string

Class Method Detail

def self.context(method : String, route : String, route_params : Hash(String, String) | Nil = nil, headers : Hash(String, String) | Nil = nil, body : String | Bytes | IO | Nil = nil, &) #

[View source]

Instance Method Detail

def authorize_groups(group_names : String) #

[View source]
def require_read #

[View source]
def require_write #

[View source]
def set_date_header #

[View source]
def set_request_id #

[View source]

Macro Detail

macro __inherit_after_filters__ #

macro __inherit_around_filters__ #

macro __inherit_before_filters__ #

macro __inherit_force_filters__ #

macro __inherit_rescue_filters__ #

macro __inherit_routes_filters__ #

macro __inherit_skip_filters__ #