Permalink
Commits on Jan 29, 2011
  1. Bumping version to rc.7

    durran committed Jan 29, 2011
  2. Nullification of associated documents loads and saves the inverse:

    - I love it when bug fixes mean less code. Fixes #604.
    durran committed Jan 29, 2011
  3. Allow #any_of criteria on embeds many relations:

    - Refactored the matchers to use a strategy class to get the appropriate
      matcher for the selector. This allowed for the Or matcher to use the
      same strategy and be able to recursively match for more complex or
      queries.
    
    - Fixes #627.
    durran committed Jan 29, 2011
  4. Refactoring dirty spec

    durran committed Jan 29, 2011
  5. Adding spec to show hash persistence with invalid keys raises correct

    errors. Fixes #472.
    
    - Sometimes the BSON gem catches the invalid hash keys, sometimes the
      error is raised by Mongo. In order for you to get the error back from
      Mongo you must be persisting in safe mode. This is by design, no
      change in Mongoid needed.
    durran committed Jan 29, 2011
Commits on Jan 28, 2011
  1. Removing the old conversions spec

    durran committed Jan 28, 2011
  2. Diverting all BSON::ObjectId conversion calls through

    BSON::ObjectId.convert:
    
    - This now handles all the conversions, for every case.
    - Allows proper String -> ObjectId conversions in the criteria methods
      that pass through #update_selector: all_in, any_in, any_of, and,
      where, excludes, not_in.
    - Fixes #370.
    - Fixes #395.
    - Fixes #372.
    durran committed Jan 28, 2011
Commits on Jan 27, 2011
  1. Make sure binding on many-to-many relations is truly binding.

    - There should never be a :binding => false option coming out of a
      binding object. Shouldn't have missed that.
    
    - This is second part fix for #611. Next is on to the delete.
    durran committed Jan 27, 2011
  2. fix spec

    etehtsea committed Jan 27, 2011
  3. fix typo in bg locale

    etehtsea committed Jan 27, 2011
  4. fix root for zh-CN locale

    etehtsea committed Jan 27, 2011
  5. Removing second check - array should always check for inclusion no ma…

    …tter what the other type is.
    durran committed Jan 27, 2011
  6. Default matcher should not only check inclusion of strings in arrays,

    but any object. Fixes #614.
    durran committed Jan 27, 2011
  7. references_many should return [] during initialization of the parent.

    Before this, during initialization, the relation would return nil for
    references_many relations with no metadata present to introspect.
    Visnu Pitiyanuvath committed with durran Jan 27, 2011
  8. Accept nested attributes for an embeds_one with an incoming string Ob…

    …jectId.
    
    Rails passes all argument values as strings. So, for an embeds_one using
    nested_attributes_for, it needs to be able to accept an id and still convert
    it to an ObjectId.
    Visnu Pitiyanuvath committed with durran Jan 27, 2011
  9. russian translation

    etehtsea committed Jan 27, 2011
Commits on Jan 26, 2011
  1. Don't fire timestamp or versioning callbacks if the document is not

    dirty.
    
    - This is first part fix for #611. Second part is making sure save isnt
      called in the first place unless an id has changed.
    durran committed Jan 26, 2011
  2. Set deeply embedded documents properly when nesting attributes:

    - Stolen from @peterhume's fork
    - Fixes #593.
    durran committed Jan 26, 2011
Commits on Jan 25, 2011
  1. Add passing specs for issue #597

    Paul Elliott committed Jan 25, 2011
Commits on Jan 24, 2011
  1. Fix typo

    Rogelio J. Samour and Tim Pope committed with Hashrocket Workstation Jan 24, 2011
  2. Moving spec/integration to spec/functional since it just makes more s…

    …ense named that way.
    durran committed Jan 24, 2011