I was reading what an around_action does:
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
and I understand the example up until
ensure
raise ActiveRecord::Rollback
What does ensure raise ActiveRecord::Rollback
do exactly?
Note: a similar convention is used in the rails guides, although I think it must be assumed knowledge because the guide doesn't provide a direct explanation either