instance method
image
Ruby on Rails 8.1.2
Since v5.2.8.1Signature
image()
Returns the receiving variant. Allows ActiveStorage::Variant and ActiveStorage::Preview instances to be used interchangeably.
Source
# File activestorage/app/models/active_storage/variant.rb, line 97
def image
self
end
Defined in activestorage/app/models/active_storage/variant.rb line 97
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Variant