Open alallema opened 3 months ago
If an empty message is send an error is through. See Sentry report
ActiveRecord::RecordInvalid La validation a échoué : Messages n'est pas valide (ActiveRecord::RecordInvalid)
It would be better to check this beforehand than to be stopped by this condition: validates_presence_of :content
validates_presence_of :content
What happens:
If an empty message is send an error is through. See Sentry report
Error:
Possible solutions:
It would be better to check this beforehand than to be stopped by this condition:
validates_presence_of :content