Rolify 3.1 is incompatible with Mongoid
hosamaly opened this issue · comments
I was trying to generate an app using the rails3-devise-mongoid
template, and enabled authorization using cancan and rolify. However, Rolify 3.1 (which is required by the template) has an issue with Mongoid, causing the generation process to fail. The issue has been fixed in Rolify 3.2.0.beta4.
Until Rolify 3.2.0.final is released, an acceptable workaround could be to prepend the call to rolify
in the user model with include Mongoid::Document
, as you can see here.
Moved to rails_apps_composer, issue #67.