Permalink
Commits on Aug 5, 2011
  1. Merge pull request #1118 from hookercookerman/metadata_inverse_foreig…

    …n_key
    
    Metadata #inverse_foreign_key returns a demodulized class foreign_key if inverse_of is not set;
    durran committed Aug 5, 2011
  2. Updating changelog

    durran committed Aug 5, 2011
  3. Bumping to 2.1.5

    durran committed Aug 5, 2011
  4. Remove the print

    durran committed Aug 5, 2011
  5. Don't memoize the relation type information on the document:

    - Documents can commonly have multiple relations on them of differing
      types and the metadata is constantly being switched out depending on
      the relation being used in the current operation. The documents need
      to handle this.
    
    - Fixes #1110.
    - Fixes #1115.
    durran committed Aug 5, 2011
Commits on Aug 4, 2011
  1. Atomic modifications should never contain a $set on _id:

    - This will always result in a Assertion: 10148:Mod on _id not allowed
      in MongoDB. Mongoid now ignores these when asking for the $set
      modifiers.
    
    - Fixes #1111.
    - Fixes #1098.
    durran committed Aug 4, 2011
  2. Metadata #inverse_foreign_key returns a demodulized class foreign_key…

    … for when
    
    inverse_of is not set;
    
    Fix Bug where ManytoMany relation using namespace classes will not bind
    corrrectly; why because bind_one uses metadata.inverse_foreign_key which
    will generated inverse_foreign_keys like "fruit/apple_ids"
    hookercookerman committed Aug 4, 2011
Commits on Aug 3, 2011
  1. Updating changelog

    durran committed Aug 3, 2011
  2. Use generic 1.9.2

    durran committed Aug 3, 2011
  3. Many to many #clear no longer deletes documents:

    - This simply nullifies the relation to be consistent with AR behaviour.
    - For previous behaviour of #clear, please use #purge.
    - Fixes #988.
    durran committed Aug 3, 2011
Commits on Aug 2, 2011
  1. Verifying autosave will work with setting nested attributes in

    referenced relations. Fixes #977."
    durran committed Aug 2, 2011
  2. Adding tests to confirm that array checking on embedded criteria was …

    …fixed. Fixes #1078.
    durran committed Aug 2, 2011
  3. Embedded::Many#delete must actually delete the document from the db:

    - Nested attributes switched to using #delete on the relations in order
      to properly handle both embedded and relational many proxies. This is
      since the relational proxies require special behaviour when using
      dependent options and may not actually delete the document but
      reference it... However the embedded proxy wasn't actually deleting
      from the db just removing it from the proxy.
    
    - Fixes #1102.
    durran committed Aug 2, 2011
Commits on Aug 1, 2011
Commits on Jul 31, 2011