5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-18 08:26:21 +00:00

fix: responder con forbidden cuando los registros no sean validos

This commit is contained in:
f 2024-02-21 15:43:10 -03:00
parent 03c0b71b5f
commit 0443cb0fc3
No known key found for this signature in database

View file

@ -11,6 +11,7 @@ module Api
included do
# Responde con forbidden si falla la validación del token
rescue_from ActiveRecord::RecordNotFound, with: :platforms_answer
rescue_from ActiveRecord::RecordInvalid, with: :platforms_answer
private