class Avo::ApplicationController
def resource_path(model = nil, resource_id: nil, keep_query_params: false, **args)
def resource_path(model = nil, resource_id: nil, keep_query_params: false, **args) return avo.send :"resources_#{model.model_name.route_key.singularize}_path", resource_id, **args if resource_id.present? avo.send :"resources_#{model.model_name.route_key.singularize}_path", model, **args end