隔离器 检测数据库事务中的非原子交互。 例子: # HTTP calls within transaction User . transaction do user = User . new ( user_params ) user . save! # HTTP API call PaymentsService . charge! ( user ) end #=> raises Isolator::HTTPError # background job User . transaction do user . update! ( confirmed_at : Time .