Files
nairobi/spec/models
Javi Martín 8f20ee1a33 Move related content validation to the model
We were manually checking validation rules (like both relationable
objects are present, or they're both the same object) in the controller
and then using the `save!` method.

However, we usually use the `save` method (which checks all validations)
in a condition, and proceed depending on the result.

Now we're taking the same approach here. This means introducing a new
validation rule in the model to check whether both relationable objects
are the same, which is more robust than checking a condition in the
controller.
2021-06-23 23:13:58 +02:00
..
2021-05-29 14:18:31 +02:00
2021-06-11 00:51:52 +02:00
2019-05-31 18:22:59 +02:00
2019-03-27 15:22:14 +01:00