around_*
callbacks are invoked before the action, then when you want to invoke the action itself, you yield
to it, then continue execution. That’s why it’s called around
The order goes like this: before
, around
, after
.
So, a typical around_save
would look like this:
def around_save
#do something...
yield #saves
#do something else...
end