-
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 - replace cleaning path from 'file path' to 'public_path' folder. Cause folder 'spec/fixtures/uploads ' is not used.
- Loading branch information
Alexander Koshelapov
committed
Jul 26, 2017
1 parent
f43c068
commit 665f225
Showing
2 changed files
with
49 additions
and
12 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