instance method
preview
Ruby on Rails 7.0.10
Since v5.2.8.1Signature
preview(**options)
Override this method in a concrete subclass. Have it yield an attachable preview image (i.e. anything accepted by ActiveStorage::Attached::One#attach). Pass the additional options to the underlying blob that is created.
Parameters
-
optionskeyrest
Source
# File activestorage/lib/active_storage/previewer.rb, line 23
def preview(**options)
raise NotImplementedError
end
Defined in activestorage/lib/active_storage/previewer.rb line 23
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Previewer