jrgifford / delayed_paperclip

Process your Paperclip attachments in the background with delayed_job or Resque.
http://www.jstorimer.com/ruby/2010/01/30/delayed-paperclip.html
MIT License
404 stars 155 forks source link

Here is how to make delayed_paperclip work with Mongoid #190

Open ronhornbaker opened 8 years ago

ronhornbaker commented 8 years ago

FYI, here are my two commits to make this gem work with Mongoid 5. Just have to remove references to ActiveRecord and change the query syntax a bit to work with Mongoid:

https://github.com/ronhornbaker/delayed_paperclip/commit/7a0a17b3073a339ec81c83b823f3aa97caccf01a https://github.com/ronhornbaker/delayed_paperclip/commit/52f9266453ae7dd1a7e18fcca3d5a4e1c2f3370a

You may reference it directly in your Gemfile like so:

gem "delayed_paperclip", git: 'https://github.com/ronhornbaker/delayed_paperclip', :ref => '52f9266453ae7dd1a7e18fcca3d5a4e1c2f3370a'