Method: ActiveStorage::Attached::Many#attachments

Defined in:
activestorage/lib/active_storage/attached/many.rb

#attachmentsObject

Returns all the associated attachment records.

All methods called on this proxy object that aren’t listed here will automatically be delegated to attachments.



32
33
34
# File 'activestorage/lib/active_storage/attached/many.rb', line 32

def attachments
  change.present? ? change.attachments : record.public_send("#{name}_attachments")
end