Permalink
Commits on Oct 28, 2012
  1. Bump version

    durran committed Oct 28, 2012
  2. Set empty arrays in identity map properly on 1-n.

    durran committed Oct 28, 2012
    In the case of mixed returns from eager loading of parents with children
    and parents with no children, all the keys should be initialized as
    empty arrays first to avoid double db hits for the parents that had no
    documensts. (Fix provided by Douwe Maan)
    
    [ close #2507 ]
  3. Remove full path atomic selectors.

    durran committed Oct 28, 2012
    Since SERVER-831 has been open with MongoDB for 2 years, 8 months with
    no resolution in sight, it's pretty much safe to say it won't be getting
    fix and we don't need the code to support it anymore.
    
    With this removal, when updating embedded documents the selector now
    used is now much simpler - only { _id: root.id } instead of being smart
    to location the children as well.
    
    This now allows embedded documents that had been persisted outside
    Mongoid to be loaded and assigned ids from within Mongoid, and properly
    saved.
    
    [ fix #2496 ]
Commits on Oct 27, 2012
  1. Use Class.name instead of Class.model_name.

    durran committed Oct 27, 2012
    This is so applications that override model_name won't have strange
    failures with polymorphic associations in conjunction with inherited
    models.
    
    [ fix #2493 ]
  2. Remove accidental 3.1 spec

    durran committed Oct 27, 2012
  3. Update changelog

    durran committed Oct 27, 2012
  4. fixing broken check for updated_at in cache_key: issue #2501

    Arthur Neves committed with durran Oct 25, 2012
  5. Configure method documentation fixed

    Lukas Alexandre committed with durran Oct 25, 2012
Commits on Oct 24, 2012
  1. Fix removal on embedded document via nested attrs.

    durran committed Oct 24, 2012
    Previously, embedded documents would get removed from the relation on a
    nested attributes delete immediately, which would cause issues if the
    parent document validation failed. Now these removals are delayed until
    the parent passes validation and goes to persist.
    
    Note this is a behaviour change, but since the API does not change and
    the previous behaviour was incorrect and did not match AR this was able
    to go into a point release. But it is worth nothing for those expecting
    the old behaviour and hacking around it - they can remove the
    workarounds at this point.
    
    [ fix #2367 ]
  2. [ WIP ] Delay removal to docs to post validation.

    durran committed Oct 21, 2012
    First part of solving #2367 although we still have broken other specs
    now with the first part of the fix.
Commits on Oct 22, 2012
  1. Remove unnecessary merge in cascading children.

    durran committed Oct 22, 2012
    [ fix #2491 ]
  2. Support Rails streaming in middleware.

    durran committed Oct 22, 2012
    [ fix #2445 ]
Commits on Oct 21, 2012
  1. Fix versioning of localized fields.

    durran committed Oct 21, 2012
    [ fix #2483 ]
Commits on Oct 17, 2012
  1. Fix changelog for #2481

    durran committed Oct 17, 2012
  2. Handle batch state passing in M/R aggregations

    durran committed Oct 17, 2012
    Mongo batches reduce jobs in groups of 100 and passes the state along
    via the first document each time in the reduce function. This was
    causing the count in the aggregations to reset every 100 documents that
    were passed through the reduce. The effect would throw off any
    calculations for avg and count with result sets larger than 100 docs.
    
    [ fix #2482 ]
Commits on Oct 15, 2012
  1. Don't fail on embedded pagination out of range

    durran committed Oct 15, 2012
    When skip or limit criteria are provided to an embeds_many relation
    criteria that is out of range of the documents, we should simply return
    an empty array.
    
    [ fix #2476 ]
  2. Embedded paranoid document deleted scope fixed.

    durran committed Oct 15, 2012
    [ fix #2451 ]
Commits on Oct 14, 2012
  1. Ensure update_all does not error if nothing to update

    durran committed Oct 14, 2012
    [ fix #2472 ]
Commits on Oct 13, 2012
  1. Nullified documents can be re-added to a relation.

    durran committed Oct 13, 2012
    [ fix #2469 ]
  2. Properly remove embedded docs in as_document.

    durran committed Oct 13, 2012
    In the case of a relation existing in the attributes hash and then
    getting set to empty, this now allows the attributes to properly get
    reset.
    
    [ fix #2454 ]
  3. it's to its

    durran committed Oct 13, 2012
Commits on Oct 11, 2012
Commits on Oct 10, 2012
  1. start 3.0.9

    durran committed Oct 10, 2012
  2. Update changelog

    durran committed Oct 10, 2012
  3. Bump version

    durran committed Oct 10, 2012