Rails engine for serving paperclip attachments dynamically