lib/prontoforms/form_submission.rb in prontoforms-2.0.0 vs lib/prontoforms/form_submission.rb in prontoforms-2.0.1
- old
+ new
@@ -82,10 +82,10 @@
# Retrieve all documents attached to this form submission
# @return [Array] Documents attached to the form submission
def documents(populate: false)
ids = form_version.document_ids
if populate
- ids.map { |id| form.iteration(id) }
+ ids.map { |id| form_space.document(id) }
else
ids
end
end