abstract class
Orma::ModelAction
- Orma::ModelAction
- Crumble::Turbo::Action
- Reference
- Object
Direct Known Subclasses
Defined in:
orma/model_action.crConstructors
- .new(ctx : Crumble::Server::HandlerContext, model)
- .new(request_ctx : Crumble::Server::RequestContext, model)
Class Method Summary
- .action_name : String
- .matched_handle(ctx, match)
- .model_not_found(ctx)
- .path_matcher : Regex
- .uri_path(model_id) : String
Macro Summary
Instance Method Summary
- #controller
- #model
- #model_action_controller
-
#refreshed_model_templates
Model templates that should be streamed to the requester and refreshed for other subscribers after the action controller runs.
- #uri_path
Instance methods inherited from class Crumble::Turbo::Action
action_form(**opts)
action_form,
before_action_halted?
before_action_halted?,
controller
controller,
custom_action_trigger(**opts)
custom_action_trigger,
handle
handle,
redirect(new_path)
redirect,
refresh_template
refresh_template,
uri_path : String
uri_path,
window_title : String | Nil
window_title
Constructor methods inherited from class Crumble::Turbo::Action
new(ctx : Crumble::Server::HandlerContext)new(request_ctx : Crumble::Server::RequestContext) new
Class methods inherited from class Crumble::Turbo::Action
handle(ctx) : Bool
handle,
match_request(ctx) : Regex::MatchData | Nil
match_request,
matched_handle(ctx, path_match)
matched_handle,
path_matcher : Regex
path_matcher,
uri_path : String
uri_path
Macros inherited from class Crumble::Turbo::Action
before(&blk)
before,
controller(&blk)
controller,
form(&blk)
form,
view(&blk)
view
Constructor Detail
Class Method Detail
Macro Detail
Instance Method Detail
abstract
def refreshed_model_templates
#
Model templates that should be streamed to the requester and refreshed for other subscribers after the action controller runs.