class ActiveStorage::Attached
Active Storage Attached
Abstract base class for the concrete ActiveStorage::Attached::One
and ActiveStorage::Attached::Many
classes that both provide proxy access to the blob association for a record.
Attributes
[R] | name |
|
[R] | record |
Public class methods
Source code GitHub
# File activestorage/lib/active_storage/attached.rb, line 13
def initialize(name, record)
@name, @record = name, record
end
Namespace
Definition files
activestorage/
lib/ active_storage/ attached.rb activestorage/
lib/ active_storage/ attached/ changes/ create_many.rb activestorage/
lib/ active_storage/ attached/ changes/ create_one.rb activestorage/
lib/ active_storage/ attached/ changes/ create_one_of_many.rb activestorage/
lib/ active_storage/ attached/ many.rb activestorage/
lib/ active_storage/ attached/ model.rb activestorage/
lib/ active_storage/ attached/ one.rb