class Engine2::StarToManyUnlinkAction

Public Instance Methods

invoke(handler) click to toggle source
# File lib/engine2/action/link.rb, line 94
def invoke handler
    handler.permit id = handler.params[:id]
    handler.permit parent = handler.params[:parent_id]
    invoke_unlink_db handler, split_keys(parent), [id]
end
pre_run() click to toggle source
# File lib/engine2/action/link.rb, line 89
def pre_run
    super
    node.parent.parent.*.menu(:item_menu).option :confirm_unlink, icon: "minus", show: "action.selected_size() == 0", button_loc: false
end