From 7b1dfac29146ddda82d1ee226cdb8ef281013502 Mon Sep 17 00:00:00 2001 From: George Claghorn Date: Sat, 16 Dec 2017 19:41:43 -0500 Subject: Update ActiveStorage::Blob#transformation docs [ci skip] --- activestorage/app/models/active_storage/blob.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/activestorage/app/models/active_storage/blob.rb b/activestorage/app/models/active_storage/blob.rb index fdf17ac67e..3b48ee72af 100644 --- a/activestorage/app/models/active_storage/blob.rb +++ b/activestorage/app/models/active_storage/blob.rb @@ -172,11 +172,11 @@ class ActiveStorage::Blob < ActiveRecord::Base end - # Returns an ActiveStorage::Preview instance for a previewable blob or an ActiveStorage::Variant instance for an image blob. + # Returns an ActiveStorage::Preview for a previewable blob or an ActiveStorage::Variant for a variable image blob. # # blob.representation(resize: "100x100").processed.service_url # - # Raises ActiveStorage::Blob::UnrepresentableError if the receiving blob is neither an image nor previewable. Call + # Raises ActiveStorage::Blob::UnrepresentableError if the receiving blob is neither variable nor previewable. Call # ActiveStorage::Blob#representable? to determine whether a blob is representable. # # See ActiveStorage::Blob#preview and ActiveStorage::Blob#variant for more information. @@ -191,7 +191,7 @@ class ActiveStorage::Blob < ActiveRecord::Base end end - # Returns true if the blob is variable or is previewable. + # Returns true if the blob is variable or previewable. def representable? variable? || previewable? end -- cgit v1.2.3