diff options
author | George Claghorn <george@basecamp.com> | 2017-12-16 19:41:43 -0500 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2017-12-16 19:41:43 -0500 |
commit | 7b1dfac29146ddda82d1ee226cdb8ef281013502 (patch) | |
tree | bc5d7ff20df617090a8b77406e41577cfc3a9188 /activestorage/app/models | |
parent | c5b900da7323d33ae10e00c45ca7aaebc0e9c75c (diff) | |
download | rails-7b1dfac29146ddda82d1ee226cdb8ef281013502.tar.gz rails-7b1dfac29146ddda82d1ee226cdb8ef281013502.tar.bz2 rails-7b1dfac29146ddda82d1ee226cdb8ef281013502.zip |
Update ActiveStorage::Blob#transformation docs [ci skip]
Diffstat (limited to 'activestorage/app/models')
-rw-r--r-- | activestorage/app/models/active_storage/blob.rb | 6 |
1 files 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 |