class ActiveStorage::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

name[R]
record[R]

Public Class Methods

new(name, record) click to toggle source
# File lib/active_storage/attached.rb, line 11
def initialize(name, record)
  @name, @record = name, record
end

Private Instance Methods

change() click to toggle source
# File lib/active_storage/attached.rb, line 16
def change
  record.attachment_changes[name]
end