abstract class Application
- Application
- ActionController::Base
- Reference
- Object
Included Modules
Direct Known Subclasses
Defined in:
controllers/application.crConstant 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
- #authorize_groups(group_names : String)
- #require_read
- #require_write
- #set_date_header
- #set_request_id
Macro Summary
- __inherit_after_filters__
- __inherit_around_filters__
- __inherit_before_filters__
- __inherit_force_filters__
- __inherit_rescue_filters__
- __inherit_routes_filters__
- __inherit_skip_filters__
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, &)
#