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
1145
1146
1147
1148
|
# File 'lib/engine2/action.rb', line 1145
def self.included action
action.http_method :delete
action.action_type :delete
end
|
Instance Method Details
1150
1151
1152
1153
1154
|
# File 'lib/engine2/action.rb', line 1150
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
|