Skip to Content Skip to Search
v7.1.0
class ActiveStorage::Attached < Object

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.

Methods
N

Attributes

[R] name
[R] record

Public class methods

new(name, record)

Permalink
Source code GitHub
# File activestorage/lib/active_storage/attached.rb, line 13
def initialize(name, record)
  @name, @record = name, record
end
Namespace
Definition files
9 More Less