-
Shouichi Kamiya authored
ActiveStorage variants are processed on the fly when they are needed but sometimes we're sure that they are accessed and want to processed them upfront. `preprocessed` option is added when declaring variants. ``` class User < ApplicationRecord has_one_attached :avatar do |attachable| attachable.variant :thumb, resize_to_limit: [100, 100], preprocessed: true end end ```
Shouichi Kamiya authoredActiveStorage variants are processed on the fly when they are needed but sometimes we're sure that they are accessed and want to processed them upfront. `preprocessed` option is added when declaring variants. ``` class User < ApplicationRecord has_one_attached :avatar do |attachable| attachable.variant :thumb, resize_to_limit: [100, 100], preprocessed: true end end ```
Loading