-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
When a model class responds to logger and the attributes has been protected with attr_protected, then Mongoid's internal logic triggers the ActiveModel MassAssignmentSecurity debug logging "WARNING: Can't mass-assign protected attributes:" a lot, especially if dealing with a nested document structure. Loading one of our documents can trigger this message up to 16 times in a row per document.