Post #2898118
2024-12-23 21:36 UTC
@soulcutter @esparta what if it’s like?
before_action :validate_access
def destroy
to_delete =Array.wrap(params[:_json] || params[:id])
…
end
def validate_access
authorize Model.find_by(id: params[:id])
end
Replies (0)
No replies.