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.

    - 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.
    durran committed Jan 9, 2011
  3. Allow better integration via referenced_in from a document, either

    embedded or not, to an object in another collection or database that
    does not reference the document back.
    durran committed Jan 9, 2011
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…

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

    …od ruby-debug with the good ruby version
    shingara committed with Paul Elliott Jan 6, 2011
  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, …

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

    - 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.
    durran committed Jan 6, 2011
  3. Bindings must always pass a :building => true to the setter not to fo…

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

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

    …an explicit set of the relation
    durran committed Jan 5, 2011
  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

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

    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.
    durran committed Jan 5, 2011
Commits on Jan 4, 2011
  1. No auto-validation on relational many-to-many: causes infinite loops …

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

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

    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.
    durran committed Jan 4, 2011
  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…

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