vendredi 8 mars 2019

Is save method mandatory in rails?

Model.find(ids).each { |model| model.is_active = false } unless ids.empty?

Here, is model.save method necessary or not ? Because without that also, it's working.

Aucun commentaire:

Enregistrer un commentaire