MongoMapper v0.14.0 Release Notes

Release Date: 2017-01-20 // over 5 years ago
  • ✨ Enhancements:

    * Only partially update objects (using $set and $unset) when updates occur.
      Partial Updates can be turned on or off per class (by default they are off):
        class Person
          include MongoMapper::Document
          self.partial_updates = true
    * (Optionally) allow only static (defined) keys, and raise errors for keys that haven't been defined (mimic Mongoid's allow_dynamic_fields = false).
      Turn this on, per model, with:
        class Person
          include MongoMapper::Document
          self.static_keys = true
        p =
        p['non_defined_key'] = 'foo' # => MissingKeyError
    * Add after_find, after_initialize callbacks [smtlaissezfaire]

    🐛 Bug Fixes

    * Fix counter caching with polymorphic belongs_to [smtlaissezfaire, bhernez]
    * Fix issues with arrays + plucky query. (upgrade to plucky query 0.7.0 - see regressions in scope_spec.rb)


    * Don't create accessors for reserved keys (id, class, etc) [cheald]
    * Disallow class as a key name [cheald]
    * Add ruby 1.8.7 specific gem files to use specific version of i18n <[email protected]>
    * Fixing failing tests for rails 4 <[email protected]>
    * Upgrade to rspec 3.x [smtlaissezfaire, sgnn7]
    * Officially Drop support for ruby versions < 2.0.x
    * Officially Drop support for rails < 3.2