Sha256: b0dfc29299c164a3e649f01f50877dbb2368be38e6bb45bb7053f7a1dac51f83

Contents?: true

Size: 199 Bytes

Versions: 6

Compression:

Stored size: 199 Bytes

Contents

module ReportPreviewWrapper
  def wrap_in_transaction 
    ActiveRecord::Base.transaction do
      begin
        yield
      ensure
        raise ActiveRecord::Rollback
      end
    end
  end  
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
upgrade_surveyor_gui-0.1.3 app/facades/report_preview_wrapper.rb
upgrade_surveyor_gui-0.1.2 app/facades/report_preview_wrapper.rb
surveyor_gui-0.1.2 app/facades/report_preview_wrapper.rb
surveyor_gui-0.1.1 app/facades/report_preview_wrapper.rb
surveyor_gui-0.1.0 app/facades/report_preview_wrapper.rb
surveyor_gui-0.0.3 app/facades/report_preview_wrapper.rb