Revert "Removed a piece of code from attachments for an older version of...

... mongo."

This reverts commit 6ff1b0eb84bfc4ee7e067b820473d3560fc94732.


This was causing some weird issues with attachments being polymorphic. Even though the attachment had the class and id correct, it wouldn't show up under @academic_program.attachments. Reverting it for now until someone can take a closer look.