mongoid / origin

A Ruby DSL for building MongoDB queries
http://mongoid.org/en/origin/index.html
MIT License
62 stars 29 forks source link

Array.evolve that doesn't mutate its argument #91

Closed misfo closed 10 years ago

misfo commented 10 years ago

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...

Thanks for the libraries!

coveralls commented 10 years ago

Coverage Status

Coverage increased (+0.62%) when pulling 32fc56427a864bf11aaa55deb3b1989026f71bdf on misfo:array-evolve-shouldnt-mutate-its-argument into bd79cc9d7b3b6cb25079e62b1600295a2479af94 on mongoid:master.

coveralls commented 10 years ago

Coverage Status

Coverage increased (+0.62%) when pulling 32fc56427a864bf11aaa55deb3b1989026f71bdf on misfo:array-evolve-shouldnt-mutate-its-argument into bd79cc9d7b3b6cb25079e62b1600295a2479af94 on mongoid:master.