mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Start on docs for lib
This commit is contained in:
parent
48d0427ff8
commit
d4f014b927
2 changed files with 3 additions and 0 deletions
lib/active_storage
|
@ -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
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# Provides the class-level DSL for declaring that an Active Record model has attached blobs.
|
||||
module ActiveStorage::Attached::Macros
|
||||
# Specifies the relation between a single attachment and the model.
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue