I am terribly confused about an around_action. How do they work? Can someone please provide me with an example/explanation of how they work?
This is a quote from my Agil
My understanding is as below:
begin
# Do before action...
logger.info 'I am the before action'
# Do the action, which is passed as a block to your "around filter"
# Note that if you were to delete this line, the action will never be called!
yield
# Do after action...
logger.info 'I am the after action'
ensure
raise ActiveRecord::Rollback
end