Permalink
Commits on Jan 9, 2011
  1. Added NL (Dutch) locales for Mongoid.

    Michael van Rooijen committed Jan 9, 2011
  2. Adding in the ability to autosave referenced relations on parent create.

    durran committed Jan 9, 2011
    - Adding the :autosave => true option to a references_many or
      references_one relation will now tell Mongoid to automatically save
      that association when the parent is first created. This will not
      happen on subsequent updates. Defaults to false.
  3. Allow better integration via referenced_in from a document, either

    durran committed Jan 9, 2011
    embedded or not, to an object in another collection or database that
    does not reference the document back.
Commits on Jan 8, 2011
Commits on Jan 7, 2011
  1. fix problem with 1.8 ruby series where we can't splat args if not the…

    shingara committed with Paul Elliott Jan 6, 2011
    … last
  2. avoid add ruby-debug in gemspec use it only in gemfile and use the go…

    shingara committed with Paul Elliott Jan 6, 2011
    …od ruby-debug with the good ruby version
  3. Silly mistake in ro locale

    kfl62 committed with Paul Elliott Jan 2, 2011
Commits on Jan 6, 2011
  1. Foreign key name should always be the name of the relation plus _id, …

    durran committed Jan 6, 2011
    …except in many-to-many and polymorphic situations
  2. More fixes in the binding code:

    durran committed Jan 6, 2011
    - All bindings now pass :building => true through to the inverse.
    - All persistence operations skip if building.
    - In relations now persist the parent if not building.
  3. Bindings must always pass a :building => true to the setter not to fo…

    durran committed Jan 6, 2011
    …rce a save on the inverse
  4. Allowing nil or nothing to be passed to build_ and create_ methods on…

    durran committed Jan 6, 2011
    … one-to-one relations
  5. We are always building the relation, therefore not saving unless its …

    durran committed Jan 5, 2011
    …an explicit set of the relation
  6. Fixing my horrible typo

    durran committed Jan 5, 2011
Commits on Jan 5, 2011
  1. Allow create for embedded to accept parent as param

    Paul Elliott committed Jan 5, 2011
    For example: Address.create(addressable: person)
  2. Needed to override ActiveModel's #read_attribute_for_validation in order

    durran committed Jan 5, 2011
    to prevent excessive binding of relations when they were being
    validated. Also cleaned up continuation code to ensure reloading was not
    happening of the documents accidentally.
Commits on Jan 4, 2011
  1. No auto-validation on relational many-to-many: causes infinite loops …

    durran committed Jan 4, 2011
    …trying to validate both sides
  2. In light of recent comments over ActiveSupport's #try, we've introduced

    durran committed Jan 4, 2011
    a new way of doing things, courtesy of Master Yoda.
    
    "Do or do not, there is no try" --Yoda
  3. Huge refactoring yet again around the bindings. Hard to debug issues

    durran committed Jan 4, 2011
    around setting inverse relations caused me to change the binding
    behaviour to be explicit: As a relation you set your self, set your
    inverse, and then stop every single time no matter what.
  4. Updating rspec, mongo, bson

    durran committed Jan 4, 2011
Commits on Jan 3, 2011
  1. parent_name and child_name were bad class method names for cyclic ass…

    durran committed Jan 3, 2011
    …ociations umm-kay. :)