WARNING: Can't mass-assign protected attributes

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • 2.1.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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.

              Assignee:
              Unassigned
              Reporter:
              Chris Griego
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: