-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When we try to create new active record object into transaction and meet rollback: database row will not be created but uploader has created file in folder and doen't remove it. I changed behavior: now we store file only after commit action. This true and for update action in transaction. Changes in spec/orm/activerecord_spec.rb: - Add tests which covers this flows - add cleaning 'public_path' folder.Cause we also works with 'spec/public/uploads' folder.
- Loading branch information
Alexander Koshelapov
committed
Jul 26, 2017
1 parent
f43c068
commit b0ed530
Showing
2 changed files
with
51 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters