Module: Engine2::ActionDeleteSupport
Class Method Summary
collapse
Instance Method Summary
collapse
#hide_pk, #node_defined, #show_pk, #unsupported_association
Class Method Details
.included(action) ⇒ Object
1162
1163
1164
1165
|
# File 'lib/engine2/action.rb', line 1162
def self.included action
action.http_method :delete
action.action_type :delete
end
|
Instance Method Details
1167
1168
1169
1170
1171
|
# File 'lib/engine2/action.rb', line 1167
def pre_run
super
execute "action.errors || [action.parent().invoke(), action.panel_close()]"
node.parent.parent.*.(:item_menu).option :confirm_delete, icon: "trash", show: "action.selected_size() == 0", button_loc: false
end
|