method
persisted_or_new_attachments
v7.0.0 -
Show latest stable
- Class:
ActiveStorage::Attached::Changes::CreateMany
persisted_or_new_attachments()private
No documentation available.
# File activestorage/lib/active_storage/attached/changes/create_many.rb, line 47
def persisted_or_new_attachments
attachments.select { |attachment| attachment.persisted? || attachment.new_record? }
end