Permalink
Commits on Oct 2, 2012
  1. @gaffneyc

    Provide a fix for many associations not yielding to each in callbacks.

    Ran into an issue when iterating over a many association in a
    before_save callback on a document. For an association named foos,
    `foos.inspect` would show the items but `foos.each` would never yield to
    the given block since it appears to be empty.
    
    The original issue I was tracking down was that instead of not yielding
    it was yielding instances of Mongo::Cursor instead of the association
    object. I haven't been able to recreate that case.
    gaffneyc committed Oct 2, 2012
Commits on Oct 1, 2012
  1. @gaffneyc

    Support non-ObjectID ids being given to modifiers.

    The partially broken by cf82ec6 where it allowed a single ID to be
    passed and it would work as expected. This also adds support for
    multiple IDs to be provided.
    gaffneyc committed Oct 1, 2012
Commits on Sep 28, 2012
  1. @cheald
  2. @cheald
Commits on Sep 21, 2012
  1. @jnunemaker
  2. @jnunemaker
  3. @jnunemaker
  4. @jnunemaker
  5. @jnunemaker

    Merge pull request #453 from leifcr/test_generator_fix

    Fixes tests for generators
    jnunemaker committed Sep 21, 2012
  6. @leifcr

    Fixes tests for generators

    leifcr committed Sep 21, 2012
  7. @jnunemaker

    Moving generator tests around.

    Trying to get travis to pass.
    jnunemaker committed Sep 21, 2012
  8. @jnunemaker
  9. @jnunemaker
  10. @jnunemaker

    Optimization: use key?

    keys.keys creates an uneeded array.
    jnunemaker committed Sep 21, 2012
  11. @jnunemaker

    Merge branch 'safe_accepts_hash' of https://github.com/balexand/mongo…

    …mapper into balexand-safe_accepts_hash
    jnunemaker committed Sep 21, 2012
  12. @jnunemaker
  13. @jnunemaker

    Merge branch 'generator-parent-option' of https://github.com/bearded/…

    …mongomapper into bearded-generator-parent-option
    jnunemaker committed Sep 21, 2012
  14. @jnunemaker

    Fixes for ruby 1.8.

    jnunemaker committed Sep 21, 2012
  15. @jnunemaker

    Merge branch 'bug/issue-421' of https://github.com/andrewtimberlake/m…

    …ongomapper into andrewtimberlake-bug/issue-421
    jnunemaker committed Sep 21, 2012
  16. @jnunemaker

    Inherit connection and database name.

    Subclasses were not getting these before. Only collection name was
    inherited.
    
    Fixes #420 and #424
    jnunemaker committed Sep 21, 2012
  17. @jnunemaker

    Rewrite part of the default key stuff

    * has_default changed to default?
    * default_attributes removed in favor of a select/each with defaulted
    keys
    jnunemaker committed Sep 21, 2012
  18. @jnunemaker

    Merge branch 'feature/initialize_defaults' of https://github.com/wpet…

    …erson/mongomapper into wpeterson-feature/initialize_defaults
    jnunemaker committed Sep 21, 2012
  19. @jnunemaker
  20. @jnunemaker

    Minor: formatting

    jnunemaker committed Sep 21, 2012
  21. @aledalgrande @jnunemaker
  22. @aledalgrande @jnunemaker
  23. @danielbecker @jnunemaker
  24. @jnunemaker

    Merge pull request #451 from wpeterson/bug/travis_build

    Fix Travis MongoMapper build
    jnunemaker committed Sep 21, 2012
Commits on Sep 20, 2012
  1. @wpeterson

    Declare TravisCI mongo service dependency.

    Attempt to fix Travis build by enabling the mongo service.
    
    This service was disabled by default and now requires an explicit service config.
    wpeterson committed Sep 19, 2012
Commits on Sep 19, 2012
  1. @wpeterson

    Declare TravisCI mongo service dependency.

    Attempt to fix Travis build by enabling the mongo service.
    
    This service was disabled by default and now requires an explicit service config.
    wpeterson committed Sep 19, 2012
Commits on Sep 17, 2012
  1. @wpeterson

    Add automatic id generation when not set.

    There are several cases (like clone()) where we want to generate a new id for a Document without initializing all other default values.
    
    Allow the get() accessor for _id key to automatically generate the id if one is not defined.
    wpeterson committed Sep 17, 2012
  2. @wpeterson

    Initialize default values for all cases

    Ensure we setup default attribute values for initialize() and initialize_from_database().
    
    This fixes issues with id generation and other default values being set for embedded docs/associations.
    wpeterson committed Sep 17, 2012
Commits on Sep 14, 2012
  1. @wpeterson

    Only set defaults values on initialize()

    Use write_key to bypass attr_accessible protection for default values.
    
    Add support for default _id values to id accessor.
    wpeterson committed Sep 14, 2012
Commits on Sep 12, 2012
  1. @jnunemaker

    Release 0.12.0

    jnunemaker committed Sep 12, 2012
  2. @jnunemaker

    Force 0.5.2 of plucky.

    Fixes count query loading all documents when using the identity map.
    jnunemaker committed Sep 12, 2012