aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2017-07-06 17:26:53 +0200
committerGitHub <noreply@github.com>2017-07-06 17:26:53 +0200
commitfbeec41e56e3767baf0810f7a0bed46e050a8044 (patch)
tree57679adebcd9f030ffebdc4840ba778df74dc349
parent8fb2e96724f8b4dc2da15312f5769578cb0f3372 (diff)
downloadrails-fbeec41e56e3767baf0810f7a0bed46e050a8044.tar.gz
rails-fbeec41e56e3767baf0810f7a0bed46e050a8044.tar.bz2
rails-fbeec41e56e3767baf0810f7a0bed46e050a8044.zip
Link up main models
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index ecfc2ed170..7dde8b6926 100644
--- a/README.md
+++ b/README.md
@@ -6,7 +6,7 @@ focus is on cloud storage.
## Compared to other storage solutions
-A key difference to how Active Storage works compared to other attachment solutions in Rails is through the use of built-in `Blob` and `Attachment` models (backed by Active Record). This means existing application models do not need to be modified with additional columns to associate with files. Active Storage uses GlobalID to provide polymorphic associations via the join model of `Attachment`, which then connects to the actual `Blob`.
+A key difference to how Active Storage works compared to other attachment solutions in Rails is through the use of built-in [Blob](https://github.com/rails/activestorage/blob/master/lib/active_storage/blob.rb) and [Attachment](https://github.com/rails/activestorage/blob/master/lib/active_storage/attachment.rb) models (backed by Active Record). This means existing application models do not need to be modified with additional columns to associate with files. Active Storage uses GlobalID to provide polymorphic associations via the join model of `Attachment`, which then connects to the actual `Blob`.
These `Blob` models are intended to be immutable in spirit. One file, one blob. You can associate the same blob with multiple application models as well. And if you want to do transformations of a given `Blob`, the idea is that you'll simply create a new one, rather than attempt to mutate the existing (though of course you can delete that later if you don't need it).