class method
self.accept?
Ruby on Rails 5.2.8.1
Since v5.2.8.1Signature
self.accept?(blob)
Implement this method in a concrete subclass. Have it return true when given a blob from which the previewer can generate an image.
Parameters
-
blobreq
Source
# File activestorage/lib/active_storage/previewer.rb, line 16
def self.accept?(blob)
false
end
Defined in activestorage/lib/active_storage/previewer.rb line 16
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Previewer