-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
I've encountered and issue when trying to use Mongoid::Paranoia on
embedded document.
The models look like this:
http://gist.github.com/548876
If I try to change simple destroy method call into .delete method call
like this:
def destroy
@expense = @project.expenses.find(params[:id])
@expense.delete
......
end
It throws me an error on line with @expense.delete:
Access to the collection for Expense is not allowed since it is an
embedded document, please access a collection from the root document.