Comment mettre à jour un champ sur les rails après_save
after_save :updater
# Awesome Ruby code
# ...
# ...
private
def updater
self.update_column(:column_name, new_value) # This will skip validation gracefully.
end
Terrible Tapir