Something I can't find in the docs, is there a way...
# avo-2
d
Something I can't find in the docs, is there a way to override the find_by method. Currently it is trying to do a find_by(id: x) but I want it to do a find_by_uuid(x) instead
l
You can override the
set_model
method in the resource controller that you need it. Be aware that it's "private API" and it might change in the future.
d
perfect, works like a charm, thanks!
4 Views