-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an ability to display original images
The current implementation always displays a variant if an image is variable regardless of setting `show_preview_variant` to `nil`. ``` Field::ActiveStorage.with_options(show_preview_variant: nil) ``` This change allows us to show the original image by passing `false`. ``` Field::ActiveStorage.with_options(show_preview_variant: false) ``` Though the behavioral difference between `nil` and `false` is subtle, it somewhat aligns with the Action View's `layout` method. > https://api.rubyonrails.org/classes/ActionView/Layouts/ClassMethods.html#method-i-layout > - false: There is no layout > - nil: Force default layout behavior with inheritance
- Loading branch information
Showing
3 changed files
with
7 additions
and
0 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
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