DELETE
and the TRUNCATE
will both help. But whats is more efficient?retry
method allows us to effortlessly retry a met a code block or an error handled method when an error is raised. This posts explains the retry
method with an example use.[attr]_was
, [attr]_chagned?
, [attr]_previously_was
are some among the helpful methods implemented in ActiveModel::Dirty
module..(args)`
instead of the .call
method in services and other applicable instances.