method
find_attachment
rails latest stable - Class:
ActiveStorage::Attached::Changes::CreateOneOfMany
find_attachment()private
No documentation available.
# File activestorage/lib/active_storage/attached/changes/create_one_of_many.rb, line 6
def find_attachment
record.public_send("#{name}_attachments").detect { |attachment| attachment.blob_id == blob.id }
end