I don't know how to find the attachments.

Have you tried the profiler?
ruby -rprofile file.rb