Class: Engine2::ConfirmAction
- Includes:
- ActionMenuSupport, ActionPanelSupport
- Defined in:
- lib/engine2/action.rb
Instance Attribute Summary
Attributes inherited from Action
#assets, #invokable, #meta, #node, #static
Instance Method Summary collapse
Methods included from ActionPanelSupport
#modal_action, #panel, #panel_class, #panel_footer, #panel_header, #panel_panel_template, #panel_template, #panel_title, #post_run
Methods included from ActionMenuSupport
Methods inherited from Action
action_type, #action_type, #arguments, #check_anonymous_action_class, #check_static_action, #define_invoke, #define_method, #dynamic?, #execute, #freeze_action, #http_method, http_method, inherit, inherited, #initialize, #invoke!, #join_keys, #lookup, #merge, #node_defined, #post_process, #post_run, #repeat, #request, #request_action_proc_params, #split_keys
Constructor Details
This class inherits a constructor from Engine2::Action
Instance Method Details
#invoke(handler) ⇒ Object
582 583 584 585 |
# File 'lib/engine2/action.rb', line 582 def invoke handler params = handler.request.params # params.merge({arguments: params.keys}) end |
#message(msg) ⇒ Object
566 567 568 |
# File 'lib/engine2/action.rb', line 566 def msg [:message] = msg end |
#pre_run ⇒ Object
570 571 572 573 574 575 576 577 578 579 580 |
# File 'lib/engine2/action.rb', line 570 def pre_run super panel_template 'scaffold/message' panel_title LOCS[:confirmation] panel_class 'modal-default' :panel_menu do option :approve, icon: "ok", loc: LOCS[:ok], disabled: "action.action_pending()" option :cancel, icon: "remove" end end |