This was erroring when attachment was nil (for example, if you just initialized a new Attachment without setting any value, and haven't saved it yet.) I was getting the following error
This was erroring when attachment was nil
(for example, if you just initialized a new Attachment without setting any value, and haven't saved it yet.)
I was getting the following error

TypeError:
       no implicit conversion of nil into String

This should fix the tests in this PR https://github.com/biola/academic-publisher/pull/17

biola/buweb-content-models