Module: Engine2::ActionBulkDeleteSupport
Class Method Summary
collapse
Instance Method Summary
collapse
#hide_pk, #node_defined, #show_pk, #unsupported_association
Class Method Details
.included(action) ⇒ Object
1177
1178
1179
1180
|
# File 'lib/engine2/action.rb', line 1177
def self.included action
action.http_method :delete
action.action_type :bulk_delete
end
|
Instance Method Details
1182
1183
1184
1185
1186
1187
|
# File 'lib/engine2/action.rb', line 1182
def pre_run
super
execute "action.errors || [action.parent().invoke(), action.panel_close()]"
node.parent.parent.*.
node.parent.parent.*.(:menu).option_after :default_order, :confirm_bulk_delete, icon: "trash", show: "action.selected_size() > 0"
end
|