Class: Engine2::DeleteMeta
- Inherits:
-
DeleteMetaBase
- Object
- Meta
- DeleteMetaBase
- Engine2::DeleteMeta
- Defined in:
- lib/engine2/meta/delete_meta.rb
Instance Attribute Summary
Attributes inherited from Meta
#action, #assets, #invokable, #static
Instance Method Summary collapse
Methods inherited from DeleteMetaBase
Methods included from MetaModelSupport
#action_defined, #get_type_info, #hide_pk, #show_pk, #unsupported_association
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, #request, #request_meta_proc_params, #response, #split_keys
Constructor Details
This class inherits a constructor from Engine2::Meta
Instance Method Details
#invoke(handler) ⇒ Object
51 52 53 54 |
# File 'lib/engine2/meta/delete_meta.rb', line 51 def invoke handler handler.permit id = handler.params[:id] invoke_delete_db(handler, [id]) end |
#pre_run ⇒ Object
46 47 48 49 |
# File 'lib/engine2/meta/delete_meta.rb', line 46 def pre_run super action.parent.parent.*.(:item_menu).option :confirm_delete, icon: "trash", show: "action.selected_size() == 0", button_loc: false end |