You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone,
I just wanted point out that this gem can be used with Mongoid. All you have to do is to add necessary modules in the model; Just the two lines of code noted in following example.
classProfileincludeMongoid::DocumentincludeMongoid::Timestamps# Include these modules to use carreirwave-cropextendCarrierWave::Crop::ModelAdditions::ClassMethodsincludeCarrierWave::Crop::ModelAdditions::InstanceMethods# ... rest of the model ...# you can use carrierwave-crop methods same way as beforemount_uploader:avatar,AvatarUploadercrop_uploaded:avatarend
Cheers, Farzad.
The text was updated successfully, but these errors were encountered:
Hi everyone,
I just wanted point out that this gem can be used with Mongoid. All you have to do is to add necessary modules in the model; Just the two lines of code noted in following example.
Cheers, Farzad.
The text was updated successfully, but these errors were encountered: