Permalink
Commits on Nov 4, 2012
  1. Bump version

    durran committed Nov 4, 2012
  2. Fix middleware not clearing identity map with Passenger.

    [ fix #2518 ]
    durran committed Nov 4, 2012
  3. Fix changelog

    durran committed Nov 4, 2012
  4. Fix Criteria#with to return the criteria, not class.

    [ fix #2552 ]
    durran committed Nov 4, 2012
Commits on Oct 31, 2012
Commits on Oct 29, 2012
  1. Don't hit identity map twice on empty has returns.

    [ close #2509 ]
    durran committed Oct 29, 2012
Commits on Oct 28, 2012
  1. Bump version

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

    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 ]
    durran committed Oct 28, 2012
  3. Remove full path atomic selectors.

    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 ]
    durran committed Oct 28, 2012
Commits on Oct 27, 2012
  1. Use Class.name instead of Class.model_name.

    This is so applications that override model_name won't have strange
    failures with polymorphic associations in conjunction with inherited
    models.
    
    [ fix #2493 ]
    durran committed Oct 27, 2012
  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.

    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 ]
    durran committed Oct 24, 2012
  2. [ WIP ] Delay removal to docs to post validation.

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

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

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

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

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

    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 ]
    durran committed Oct 17, 2012
Commits on Oct 15, 2012
  1. Don't fail on embedded pagination out of range

    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 ]
    durran committed Oct 15, 2012