Warnings on protected attributes when calling #dup on mongoid records.

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • 3.0.6
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Hi,

      I've got some warning when invoking #dup methods on mongoid records:

      WARNING: Can't mass-assign protected attributes: created_at, updated_at

      This is a regression as it does not happens in mongoid 2.x.

      Thanks.

              Assignee:
              Durran Jordan
              Reporter:
              alexistoulotte
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: