instance method
attachments
Ruby on Rails 7.1.6
Since v5.2.8.1Signature
attachments()
Returns all the associated attachment records.
All methods called on this proxy object that aren’t listed here will automatically be delegated to attachments.
Source
# File activestorage/lib/active_storage/attached/many.rb, line 32
def attachments
change.present? ? change.attachments : record.public_send("#{name}_attachments")
end
Defined in activestorage/lib/active_storage/attached/many.rb line 32
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Attached::Many