Class: Engine2::BulkDeleteAction

Inherits:
DeleteActionBase show all
Includes:
ActionBulkDeleteSupport
Defined in:
lib/engine2/action/delete.rb

Instance Attribute Summary

Attributes inherited from Action

#assets, #invokable, #meta, #node, #static

Instance Method Summary collapse

Methods included from ActionBulkDeleteSupport

included, #pre_run

Methods included from ActionModelSupport

#hide_pk, #node_defined, #pre_run, #show_pk, #unsupported_association

Methods inherited from DeleteActionBase

#invoke_delete_db

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, #pre_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



58
59
60
61
62
# File 'lib/engine2/action/delete.rb', line 58

def invoke handler
    ids = handler.param_to_json(:ids)
    handler.permit ids.is_a?(Array)
    invoke_delete_db(handler, ids)
end