All Versions
Latest Version
Avg Release Cycle
24 days
Latest Release
1290 days ago

Changelog History
Page 6

  • v2.5.1 Changes

    Resolved Issues

    • ๐ŸŽ #2492 Backport cascading callbacks performance and memory fixes from 3.0.0-stable.

    • #2464 Backport the nested attributes fix for keeping many relations in memory when updating attributes. (Chris Thompson)

  • v2.5.0 Changes

    ๐Ÿ†• New Features

    • ๐Ÿš€ This is a release to support the 1.7.0 and higher Mongo and BSON gems and resolves issues that kept the 2.4.x series locked below 1.6.2
  • v2.4.12 Changes

    Resolved Issues

    • #2178 Ensure destroy callbacks are run post replacement of an embeds one relation.

    • #2169 Allow saves to pass when documents are destroyed after the save in a callback.

    • #2144 Uniqueness validation on paranoid documents now properly scopes.

    • #2127 Don't unbind parents of embedded documents mid nested attributes deletion.

  • v2.4.11 Changes

    Resolved Issues

    • ๐Ÿš€ This release forces a cap on the mongo driver version at 1.6.2 due to changes in the Mongo::Connection.from_uri API not allowing valid connection options anymore.

    • ๐Ÿ›  #2040 Fixed bad interpolation for locale presence validation.

    • #2038 Allow inverse relations to be determined by foreign keys alone if defined on both sides, not just an inverse_of declaration.

    • #2023 Allow serilialization of dynamic types that conflict with core Ruby methods to still be serialized.

    • #2008 Presence validation should hit the db to check validity if the relation in memory is blank.

    • #2006 Allow excluding only the _id field post execution of an #only call.

  • v2.4.10 Changes

    Resolved Issues

    • #2003 Don't fail on document generation when an embedded document was stored as nil in the database.

    • ๐Ÿ“„ #1997 Don't delete paranoid embedded docs via nested attributes when a before_destroy callback returns false.

    • #1994 dependent: :delete only hits the database once now for one to many and many to many relations instead of once for each document.

    • #1987 Don't double-insert documents into identity map when eager loading twice inside the unit of work.

    • #1953 Uniqueness validation now works on localized fields.

    • #1936 Allow setting n levels deep embedded documents atomically without conflicting mods when not using nested attributes or documents themselves in an update call from the parent.

    • #1957/#1954 Ensure database name is set with inheritance. (Hans Hasselberg)

  • v2.4.9 Changes

    Resolved Issues

    • #1943 Ensure numericality validation works for big decimals.

    • #1938 Length validation now works with localized fields.

    • #1936 Conflicting pushes with other pushes is now properly handled.

    • #1933 Proxy#extend should delegate through to the target, where extending the proxy itself is now handled through Proxy#proxy_extend.

    • #1930 Ensure complex criteria are expanded in all where clauses. (Hans Hasselberg)

    • #1928 Deletion of embedded documents via nested attributes now performs a $pull with id match criteria instead of a $pullAll to cover all cases. Previously newly added defaults to documents that had already persisted could not be deleted in this matter since the doc did not match what was in the database.

    • 0๏ธโƒฃ #1924/#1917 Fix pushing to embedded relations with default scopes not scoping on the new document. (Hans Hasselberg)

    • #1922/#1919 Dropping collections unmemoizes the internally wrapped collection, in order to ensure when defining capped collections that they are always recreated as capped. (Hans Hasselberg)

    • 0๏ธโƒฃ #1916/#1913 Uniqueness validation no longer is affected by the default scope. (Hans Hasselberg)

    • #1943 Ensure numericality validation works for big decimals.

  • v2.4.8 Changes

    Resolved Issues

    • #1892 When getting not master operation error, Mongoid should reconnect before retrying the operation.

    • #1887 Don't cascade callbacks to children that don't have the callback defined.

    • #1882 Don't expand duplicate id criterion into an $and with duplicate selections.

    • 0๏ธโƒฃ #1878 Fixed default application values not to apply in certain only or without selection on iteration, not just first and last.

    • ๐Ÿ›  #1874 Fixed the reject all blank proc constant to handle values properly with a destroy non blank value. (Stefan Daschek)

    • #1869/#1868 Delayed atomic sets now uses the atomic path instead of the metadata name to fix multiple level embedding issues. (Chris Micacchi provided specs)

    • 0๏ธโƒฃ #1866 Post processed defaults (procs) should be applied post binding of the child in a

  • v2.4.7 Changes

    Resolved Issues

    • Ensure reloading of embedded documents retains reference to the parent.

    • #1837 Always pass symbol options to the driver.

    • #1836 Ensure relation counts pick up persisted document that have not had the foreign key link persisted.

    • #1820 Destroying embedded documents in an embeds_many should also removed the document from the underlying _uncoped target and reindex the relation.

    • #1814 Don't cascade callbacks on after_initialize.

    • #1800 Invalid options for the Mongo connection are now filtered out.

    • ๐Ÿ›  #1785 Case equality has been fixed to handle instance checks properly.

  • v2.4.6 Changes

    Resolved Issues

    • #1772 Allow skip and limit to convert strings to integers. (Jean Boussier)

    • โšก๏ธ #1767 Model#update_attributes accepts mass assignment options again. (Hans Hasselberg)

    • #1762 Criteria#any_of now properly handles localized fields.

    • ๐Ÿ“‡ #1758 Metadata now returns self on options for external library support.

    • #1757 Ensure serialization converts any attribute types to the type defined by the field.

    • ๐Ÿ“„ #1756 Serializable hash options should pass through to embedded docs.

  • v2.4.5 Changes

    Resolved Issues

    • ๐Ÿ’Ž #1751 Mongoid's logger now responds to level for Ruby logging API compatibility.

    • #1744/#1750 Sorting works now for localized fields in embedded documents using the criteria API. (Hans Hasselberg)

    • #1746 Presence validation now shows which locales were empty for localized fields. (Cyril Mougel)

    • #1727 Allow dot notation in embedded criteria to work on both embeds one and embeds many. (Lyle Underwood)

    • #1723 Initialize callbacks should cascade through children without needing to determine if the child is changed.

    • #1715 Serializable hashes are now consistent on inclusion of embedded documents per or post save.

    • #1713 Fixing === checks when comparing a class with an instance of a subclass.

    • #1495 Callbacks no longer get the 'super called outside of method` errors on busted 1.8.7 rubies.