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

Changelog History
Page 4

  • v3.0.18 Changes

    Resolved Issues

    • #2707 Calling find_or_create_by or find_by_initialize_by off a relation with a chained criteria or scope now properly keeps the relations intact on the new or found document.

    • ๐Ÿšš #2699 Resetting a field now removes the name from the changed attributes list. (Subhash Bhushan)

    • ๐Ÿ‘ #2683 Aliased fields are now supported when executing atomic operations from criteria. (Arthur Neves)

    • #2678 Calling Criteria#sum with no matching documents returns 0 instead of nil.

    • #2671 Matchers now correctly handle symbol keys. (Jonathan Hyman)

  • v3.0.17 Changes

    Resolved Issues

    • ๐Ÿ›  #2686 Fixed the broken Moped dependency - Moped now must be at least at version 1.2.0.
  • v3.0.16 Changes

    Resolved Issues

    • #2661 Implement instance level model_name for documents.

    • #2651 Ensure Criteria#type works properly with both symbol and string keys in the selector.

    • #2647 Ensure deleted? and destroyed? on paranoid documents return the same value.

    • #2646 Set unloaded doc in memory on enumerable targets before yielding to the block.

    • #2645 Take caching into consideration when asking for counts. (Arthur Nogueira Neves)

    • #2642 Don't batch push empty arrays on embedded documents. (Laszlo Bacsi)

    • ๐Ÿ— #2639 Avoid extra unnecesary queries on new records when building relations off of them.

    • #2638 When a criteria is eager loading, calling first or last then iterating the entire results properly eager loads the full request.

    • 0๏ธโƒฃ #2618 Validating uniqueness now always uses string consistency by default.

    • ๐Ÿ›  #2564 Fixed infinite recursion for cases where a relation getter was overridden and called the setter from that method.

    • #2554 Ensure unscoped on an embeds_many does not include documents flagged for destruction.

  • v3.0.15 Changes

    Resolved Issues

    • ๐Ÿ“‡ #2630 Fix cascading when the metadata exists but no cascade defined.

    • #2625 Fix Marshal.dump and Marshal.load of proxies and criteria objects.

    • ๐Ÿ›  #2619 Fixed the classes returned by observed_classes on an observer when it is observing custom models.

    • #2612 DocumentNotFound errors now expose the class in the error instance.

    • #2610 Ensure calling first after a last that had sorting options resets the sort.

    • โšก๏ธ #2604 Check pulls and pushes for conflicting updates. (Lucas Souza)

    • #2600 Instantiate the proper class type for attributes when using multi parameter attributes. (xxswingxx)

    • ๐Ÿ›  #2598 Fixed sorting on localized fields with embedded docs.

    • #2588 Block defining methods for dynamic attributes that would be invalid ruby methods. (Matt Sanford)

    • #2587 Fix method clash with belongs_to proxies when resetting relation unloaded criteria.

    • ๐Ÿ”ง #2585 Ensure session configuration options get passed to Moped as symbols.

    • #2584 Allow map/reduce to operate on secondaries if output is set to inline.

    • #2582 Ensure nil session override can never cause to access a session with name nil.

    • #2581 Use strong consistency when reloading documents. (Mark Kremer)

  • v3.0.14 Changes

    Resolved Issues

    • #2575 Prevent end of month times from rounding up since floats are not precise enough to handle usec. (Steve Valaitis)

    • #2573 Don't use i18n for inspection messages.

    • ๐Ÿšš #2571 Remove blank error message from locales. (Jordan Elver)

    • #2568 Fix uniqueness validation for lacalized fields when a scope is also provided.

    • #2552 Ensure InvalidPath errors are raised when embedded documents try to get paths from a root selector.

  • v3.0.13 Changes

    Resolved Issues

    • #2548 Fix error when generating config file with a fresh app with Unicorn in the gemset.
  • v3.0.12 Changes

    Resolved Issues

    • #2542 Allow embedded documents using store_as to properly alias in criteria.

    • #2541 Ensure that the type change is correct when upcasting/downcasting a document via Document#becomes (ลukasz Bandzarewicz)

    • #2529 Fields on subclasses that override fields in the parent where both have defaults with procs now properly override the default in the subclass.

    • #2528 Aliased fields need to be duped when subclassing.

    • โšก๏ธ #2527 Ensure removal of docs in a has_many does a multi update when setting to an empty array.

  • v3.0.11 Changes

    Resolved Issues

    • ๐Ÿ›  #2522 Fixed Criteria#with to return the criteria and not the class.

    • #2518 Fix unit of work call for the identity map when using Passenger.

    • #2512 Ensure nested attributes destroy works with the delayed destroys introduced in 3.0.10 when multiple levels deep.

    • #2509 Don't hit identity map an extra time when the returned value is an empty hash. (Douwe Maan)

  • v3.0.10 Changes

    Resolved Issues

    • #2507 Ensure no extra db hits when eager loading has a mix of parents with and without docs. (Douwe Maan)

    • โšก๏ธ #2505 Ensure update and update_all from criteria properly handle aliased fields. (Dmitry Krasnoukhov)

    • #2504 Model#becomes properly keeps the same id.

    • #2498 Criteria now properly pass provided blocks though method_missing.

    • #2496 Embedded documents that were previously stored without ids now properly update and get assigned ids from within Mongoid.

    • #2494 All explicit atomic operations now properly respect aliased fields.

    • #2493 Use Class#name instead of Class#model_name when setting polymorphic types in case model_name has been overridden.

    • ๐Ÿ”€ #2491 Removed unnecessary merge call in cascadable children.

    • #2485 Removing indexes now always uses strong consistency.

    • #2483 Versioning now handles localized fields. (Lawrence Curtis)

    • #2482 Store find parameters in the DocumentNotFound error.

    • #2481 Map/reduce aggregations now properly handle Mongo's batching of reduce jobs in groups of 100 with the state being passed through on the count.

    • #2476 Handle skip and limit outside of range on embeds_many relations gracefully.

    • #2474 Correctly detach 1-1 relations when the child is not yet loaded. (Kostyantyn Stepanyuk)

    • #2451 relation.deleted on embedded paranoid documents now works properly again.

    • โšก๏ธ #2472 Ensure update_all on embedded relations works properly when nothing is actually going to be updated.

    • #2469 Nullified documents on relations are now able to be re-added with the same in memory instance.

    • #2454 Model#as_document properly allows changes from having a relation to the relation being removed. (James Almond)

    • ๐Ÿ‘ #2445 Mongoid middleware now properly supports both normal and streamed responses and properly clears the identity map for either.

    • #2367 Embedded documents that are to be deleted via nested attributes no longer become immediately removed from the relation in case the parent validation fails. Instead, they get flagged for destruction and then the removal occurs upon the parent passing validation and going to persist.

    Note this is a behavior change, but since the API does not change and the previous behavior was incorrect and did not match AR this was able to go into a point release.

  • v3.0.9 Changes

    Resolved Issues

    • ๐Ÿš… #2463 Fixed the broken rails g mongoid:config from a fresh repo.

    • #2456 The descendants cache is now reset when the document is inherited again. (Kostyantyn Stepanyuk)

    • #2453 Model#write_attribute now properly works with aliased fields. (Campbell Allen)

    • ๐Ÿšš #2444 Removed extra dirty methods creation call. (Kostyantyn Stepanyuk)

    • #2440/#2435 Pass mass assignment options down to children when setting via nested attributes or embedded documents.

    • ๐Ÿ›  #2439 Fixed memory leak in threaded selection of returned fields. (Tim Olsen)

    • mongoid/moped#82 Aliased fields now work with Criteria#distinct.

    • โšก๏ธ #2423 Fixed embedded document's update_all to perform the correct $set when using off a criteria.

    • #2414 Index definitions now respect aliased fields.

    • #2413 Enumerable targets now properly return enumerators when no blocks are provided. (Andrew Smith)

    • #2411 BigDecimal fields are properly stored as strings when mongoizing integers and floats.

    • ๐Ÿ”ง #2409 Don't warn about missing mongoid.yml if configured programmatically.

    • โšก๏ธ #2403 Return false on update_all of an embeds many with no documents.

    • ๐Ÿ”€ #2401 Bring back the ability to merge a criteria with a hash.

    • #2399 Reject blank id values on has_many Model#object_ids=. (Tiago Rafael Godinho)

    • #2393 Ensure inverse_of is respected when using polymorphic relations.

    • #2388 Map/reduce properly uses sort instead of orderby in the execution of the command. (Alex Tsibulya)

    • #2386 Allow geo haystack and bits parameters in indexes. (Bradley Rees)

    • #2380 Model#becomes now properly copies over dirty attributes.

    • #2331 Don't double push child documents when extra saves are called in an after_create callback.