-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Filter out legacy assets when checking if all assets uploaded
If the asset doesn't respond to `variant`, it's a legacy asset (PDF thumbnail) and we want to filter it out. I did consider applying this filter more generally by overloading the `assets` call as below, but that breaks a bunch of tests - so any filtering needs to be applied on a per-case basis. ``` def assets super.select { |asset| asset.variant.present? } end ```
- Loading branch information
1 parent
0cd8498
commit c7eef95
Showing
2 changed files
with
13 additions
and
1 deletion.
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