class Engine2::StarToManyLinkAction

Public Instance Methods

invoke(handler) click to toggle source
# File lib/engine2/action/link.rb, line 15
def invoke handler
    json = handler.post_to_json
    parent = json[:parent_id]
    ids = json[:ids]
    handler.permit parent && ids
    invoke_link_db handler, split_keys(parent), ids
end
pre_run() click to toggle source
Calls superclass method Engine2::ActionModelSupport#pre_run
# File lib/engine2/action/link.rb, line 10
def pre_run
    super
    execute "action.errors || [action.parent().invoke(), action.panel_close()]"
end