mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-18 08:36:22 +00:00
fix: responder con forbidden cuando los registros no sean validos
This commit is contained in:
parent
03c0b71b5f
commit
0443cb0fc3
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue