Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-541

WARNING: Can't mass-assign protected attributes

    • Type: Icon: Task Task
    • Resolution: Done
    • 2.1.0
    • 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.

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

              Created:
              Updated:
              Resolved: