app/controllers/concerns/api/render_error_concern.rb in captive-api-0.2.8 vs app/controllers/concerns/api/render_error_concern.rb in captive-api-0.2.9
- old
+ new
@@ -20,10 +20,10 @@
object,
status: :unprocessable_entity,
message: "Erreur de validation"
)
errors = object.errors.messages
- Rails.logger.error("Impossible de sauvagarder l'objet #{object.class} : #{errors}")
+ Rails.logger.error("Impossible de sauvegarder l'objet #{object.class} : #{errors}")
render_error(
message: message, errors: errors, status: status
)
end