mongoid/mongoid — Issue #1458: Mongoid::Versioning and attr_accessible/protected Problem
Author: dukz
Created: 2011-11-29 05:08:00+00:00
State: open

When the attr_accessible or protected are included in the model, mongoid does not include the protected fields when versioning.

When i have a model that has `attr_accessible :name`, saving the record would always yield a version: 1 because the version field is not accessible. Versioning behaves properly when I do `attr_accessible :name, :version` but it actually defeats the purpose of protecting the fields from mass assignment.