Class: Engine2::BulkDeleteMeta
- Inherits:
-
DeleteMetaBase
- Object
- Meta
- DeleteMetaBase
- Engine2::BulkDeleteMeta
- Includes:
- MetaBulkDeleteSupport
- Defined in:
- lib/engine2/meta/delete_meta.rb
Instance Attribute Summary
Attributes inherited from Meta
#action, #assets, #invokable, #static
Instance Method Summary collapse
Methods included from MetaBulkDeleteSupport
Methods included from MetaModelSupport
#action_defined, #get_type_info, #hide_pk, #pre_run, #show_pk, #unsupported_association
Methods inherited from DeleteMetaBase
Methods inherited from Meta
#action_defined, #check_static_meta, #dynamic?, #freeze_meta, #get, http_method, #http_method, inherited, #initialize, #invoke!, #lookup, #merge, #meta_type, meta_type, #post_process, #post_run, #pre_run, #request, #request_meta_proc_params, #response, #split_keys
Constructor Details
This class inherits a constructor from Engine2::Meta
Instance Method Details
#invoke(handler) ⇒ Object
53 54 55 56 57 |
# File 'lib/engine2/meta/delete_meta.rb', line 53 def invoke handler ids = handler.param_to_json(:ids) handler.permit ids.is_a?(Array) invoke_delete_db(handler, ids) end |