class Avo::ActionsComponent
def action_path(action)
When running an action for one record we should do it on a special path.
def action_path(action) return single_record_path(action) if as_row_control return many_records_path(action) unless @resource.has_record_id? if on_record_page? single_record_path action else many_records_path action end end