Automatically add `accessible_by` to Mongoid Documents to match CanCan...
Automatically add `accessible_by` to Mongoid Documents to match CanCan behavior for ActiveRecord and DataMapper. Previously, CanCan::ModelAdditions had to be included in each and every Mongoid document separately. Also removed manual include of CanCan::ModelAdditions from Mongoid documents in Mongoid adapter specs.
Please register or sign in to comment