We were getting a can't modify frozen Array error when our application code was simply calling an attribute setter on a mongoid instance. The map! in this method turned out to be the culprit...
Coverage increased (+0.62%) when pulling 32fc56427a864bf11aaa55deb3b1989026f71bdf on misfo:array-evolve-shouldnt-mutate-its-argument into bd79cc9d7b3b6cb25079e62b1600295a2479af94 on mongoid:master.
Coverage increased (+0.62%) when pulling 32fc56427a864bf11aaa55deb3b1989026f71bdf on misfo:array-evolve-shouldnt-mutate-its-argument into bd79cc9d7b3b6cb25079e62b1600295a2479af94 on mongoid:master.
We were getting a
can't modify frozen Array
error when our application code was simply calling an attribute setter on a mongoid instance. Themap!
in this method turned out to be the culprit...Thanks for the libraries!