Module: ReportPreviewWrapper
- Defined in:
- app/facades/report_preview_wrapper.rb
Instance Method Summary collapse
Instance Method Details
#wrap_in_transaction ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'app/facades/report_preview_wrapper.rb', line 2 def wrap_in_transaction ActiveRecord::Base.transaction do begin yield ensure raise ActiveRecord::Rollback end end end |