Commits on Mar 14, 2013
  1. Prefer && to and.

    jnunemaker committed Mar 14, 2013
  2. Fix test name conflict.

    jnunemaker committed Mar 14, 2013
  3. Update to latest plucky.

    jnunemaker committed Mar 14, 2013
  4. Merge pull request #502 from josevalim/bundler

    jnunemaker committed Mar 14, 2013
    Update bundler and fix mocha dependency
Commits on Mar 6, 2013
Commits on Jan 23, 2013
Commits on Dec 31, 2012
  1. Upgrade plucky to latest.

    jnunemaker committed Dec 31, 2012
    New version of plucky includes a few performance tweaks.
Commits on Dec 28, 2012
  1. Update plucky version.

    jnunemaker committed Dec 28, 2012
  2. Merge branch 'query_methods_match_correct_docs' of…

    jnunemaker committed Dec 28, 2012
    …/balexand/mongomapper into balexand-query_methods_match_correct_docs
  3. Merge pull request #485 from nviennot/reverse_merge

    jnunemaker committed Dec 28, 2012
    reverse_merge! -> reverse_merge
Commits on Dec 25, 2012
  1. reverse_merge! -> reverse_merge

    nviennot committed Dec 25, 2012
    Tampering with the caller's argument might not be a good idea.
    Have our own copy.
  2. Some source files were executable

    nviennot committed Dec 25, 2012
    cleaned up with:
        find lib test -type f | xargs chmod 644
Commits on Dec 7, 2012
  1. Fix options in the template

    cheald committed Dec 7, 2012
  2. Instead of forcing safety on by default, let the connection settings …

    cheald committed Dec 7, 2012
    …specify it. Add w, pool_size, and ssl option defaults to the config.
  3. Upgrade straggler connection references.

    cheald committed Dec 7, 2012
    Upgrade safe semantics to be consistent with the new MongoClient safe semantics - legacy usage (:safe => true) is transparently upgraded to the new system.
    BIG CHANGE: In keeping with the driver defaults, safety is now ON by default (:w => 1) rather than off by default. Use `safe false` to turn off safety in a model.
    Fixed tests.
  4. Fix legacy mongo class names, that are in deprecation as of 1.8.0.

    Blaž Hrastnik committed with cheald Dec 1, 2012
    Mongo::Connection -> Mongo::MongoClient
    Mongo::ReplSetConnection -> Mongo::MongoReplicaSetClient
Commits on Nov 25, 2012
Commits on Nov 3, 2012
Commits on Oct 26, 2012
Commits on Oct 22, 2012
  1. Correctly define _id as bson ordered hash.

    jnunemaker committed Oct 22, 2012
    The reason the modifier tests were failing is because in #attributes, _id was being converted to a hash with indifferent access instead of staying a bson ordered hash.
  2. Save typecast/uncast values and use those where possible, rather than…

    cheald committed Oct 21, 2012
    … recomputing them every time they're accessed.
    Use #key? rather than #keys.include? for better performance
    Significantly reduce calls to #read_keys by avoiding #attributes calls from ActiveModel::Dirty. Improve the speed of #read_keys by avoiding string interns and ivar lookups where possible. Eliminate extraneous array creations in Keys#attributes and Associations#embedded_associations. Improve the speed of Dirty#write_key by using ivars directly rather than going through instance methods.
    Revert to the slower-but-more-semantic key reads for #attributes now that the Dirty attributes thrashing is fixed.
    attr_accessor -> attr_reader for semantic correctness