Class: Hexagonal::Adapters::ActiveRecordAdapter::UnitOfWork
- Inherits:
-
Object
- Object
- Hexagonal::Adapters::ActiveRecordAdapter::UnitOfWork
- Defined in:
- lib/hexagonal/adapters/active_record_adapter/unit_of_work.rb
Instance Method Summary collapse
Instance Method Details
#run(&block) ⇒ Object
5 6 7 |
# File 'lib/hexagonal/adapters/active_record_adapter/unit_of_work.rb', line 5 def run(&block) ActiveRecord::Base.transaction { yield } end |