dm-paperclip is a software that lets you utilize the Paperclip plugin by Thoughtbot on DataMapper. It enables you to easily manage file attachments in your database with minimal hassle.
One of the standout features of this plugin is that it offers full compatibility with the original Paperclip, so you can take an existing ActiveRecord database and use it with DataMapper with ease. Additionally, the module includes updated validation handling, automatic inclusion of necessary 'property' fields into your model, and thumbnails processing at the time the record is saved through ImageMagick.
To use dm-paperclip within your models, make sure the three database fields - {name}_file_name, {name}_content_type, and {name}_file_size - are included. The first two are strings and the last column is an integer. For example, if you have an avatar field in your user model, add avatar_file_name, avatar_content_type, and avatar_file_size fields.
The best part? dm-paperclip processes the thumbnails through the command-line applications instead of relying on RMagick. It's a great option for those looking for a reliable, compatible and easy-to-use data mapper plugin.
Version 2.1.2.1: N/A