Permalink
Commits on Nov 10, 2012
  1. Bump version

    durran committed Nov 10, 2012
  2. Rework specs and impl for #2541, update changelog

    Conflicts:
    	spec/mongoid/document_spec.rb
    durran committed Nov 10, 2012
  3. Remove the proxy

    durran committed Nov 10, 2012
Commits on Nov 7, 2012
  1. Fix default field override in subclass.

    This allows the subclass of a parent document to redefine a field of the
    same name, where the default in both is a proc. Previously the child
    would ignore defining the default method again.
    
    [ fix #2529 ]
    
    Conflicts:
    	spec/mongoid/fields_spec.rb
    durran committed Nov 7, 2012
Commits on Nov 6, 2012
  1. Dup aliased_fields on subclasses.

    [ fix #2528 ]
    durran committed Nov 6, 2012
  2. Fix warnings

    durran committed Nov 6, 2012
  3. Do multi update when setting has_many to empty.

    [ fix #2527 ]
    durran committed Nov 6, 2012
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