aboutsummaryrefslogtreecommitdiffstats
path: root/lib/active_storage/attached.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2017-07-24 12:05:23 -0500
committerDavid Heinemeier Hansson <david@loudthinking.com>2017-07-24 12:05:23 -0500
commitd4f014b927e215f32c2a11839962561b8bd5f50d (patch)
tree903abb68a474f283d148ab372e0fed51075063f4 /lib/active_storage/attached.rb
parent48d0427ff8dc6d338e2a05103a234872c32e718e (diff)
downloadrails-d4f014b927e215f32c2a11839962561b8bd5f50d.tar.gz
rails-d4f014b927e215f32c2a11839962561b8bd5f50d.tar.bz2
rails-d4f014b927e215f32c2a11839962561b8bd5f50d.zip
Start on docs for lib
Diffstat (limited to 'lib/active_storage/attached.rb')
-rw-r--r--lib/active_storage/attached.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/active_storage/attached.rb b/lib/active_storage/attached.rb
index 6b81545897..8bec129a1a 100644
--- a/lib/active_storage/attached.rb
+++ b/lib/active_storage/attached.rb
@@ -4,6 +4,8 @@ require "active_storage/attachment"
require "action_dispatch/http/upload"
require "active_support/core_ext/module/delegation"
+# Abstract baseclass for the particular `ActiveStorage::Attached::One` and `ActiveStorage::Attached::Many`
+# classes that both provide proxy access to the blob association for a record.
class ActiveStorage::Attached
attr_reader :name, :record