Add this line to your application's Gemfile:
gem 'refile-mongoid'
require "refile/mongoid"
class User
include Mongoid::Document
extend Refile::Mongoid::Attachment
attachment :profile_image
end
Allow MongoID to play nicely with refile
Add this line to your application's Gemfile:
gem 'refile-mongoid'
require "refile/mongoid"
class User
include Mongoid::Document
extend Refile::Mongoid::Attachment
attachment :profile_image
end
Allow MongoID to play nicely with refile
MIT License