Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Jan 9, 2011
  1. @meskyanichi
  2. @durran

    Adding in the ability to autosave referenced relations on parent create.

    durran authored
    - 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. @durran
  4. @durran

    Allow better integration via referenced_in from a document, either

    durran authored
    embedded or not, to an object in another collection or database that
    does not reference the document back.
Commits on Jan 8, 2011
  1. @durran
  2. @durran
Commits on Jan 7, 2011
  1. @durran
  2. @shingara

    fix problem with 1.8 ruby series where we can't splat args if not the…

    shingara authored Paul Elliott committed
    … last
  3. @shingara

    avoid add ruby-debug in gemspec use it only in gemfile and use the go…

    shingara authored Paul Elliott committed
    …od ruby-debug with the good ruby version
  4. @kfl62

    Silly mistake in ro locale

    kfl62 authored Paul Elliott committed
Commits on Jan 6, 2011
  1. @durran

    Foreign key name should always be the name of the relation plus _id, …

    durran authored
    …except in many-to-many and polymorphic situations
  2. @durran

    More fixes in the binding code:

    durran authored
    - 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. @durran

    Bindings must always pass a :building => true to the setter not to fo…

    durran authored
    …rce a save on the inverse
  4. @durran
  5. @durran

    We are always building the relation, therefore not saving unless its …

    durran authored
    …an explicit set of the relation
  6. @durran

    Fixing my horrible typo

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

    Paul Elliott authored
    For example: Address.create(addressable: person)
  2. @durran

    Needed to override ActiveModel's #read_attribute_for_validation in order

    durran authored
    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.
  3. @durran
  4. @durran
  5. @durran
Commits on Jan 4, 2011
  1. @durran
  2. @durran

    No auto-validation on relational many-to-many: causes infinite loops …

    durran authored
    …trying to validate both sides
  3. @durran
  4. @durran
  5. @durran

    In light of recent comments over ActiveSupport's #try, we've introduced

    durran authored
    a new way of doing things, courtesy of Master Yoda.
    
    "Do or do not, there is no try" --Yoda
  6. @durran

    Huge refactoring yet again around the bindings. Hard to debug issues

    durran authored
    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.
  7. @durran
  8. @durran

    Updating rspec, mongo, bson

    durran authored
Commits on Jan 3, 2011
  1. @durran
  2. @durran
  3. @durran
  4. @durran
  5. @durran
Something went wrong with that request. Please try again.