Method: ActiveStorage::Attached::Many#attachments
- Defined in:
- activestorage/lib/active_storage/attached/many.rb
#attachments ⇒ Object
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 change.present? ? change. : record.public_send("#{name}_attachments") end |