Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Feb 1, 2011
  1. @bkeepers

    Merge branch 'master' into rails3

    bkeepers authored
    * master:
      Call #save! instead of #save on the parent when calling #save! on an embedded doc
      Added turn test output formatter.
      No longer needed as I added tests for inspect in previous commit.
      Attributes are now alpha sorted in #inspect.
      Minor: errant inspect statement in test.
    
    Conflicts:
    	lib/mongo_mapper/plugins/embedded_document.rb
  2. @bkeepers
Commits on Jan 21, 2011
  1. @jnunemaker

    Added turn test output formatter.

    jnunemaker authored
    Shows failure as you go and formats output a bit better.
  2. @jnunemaker
  3. @jnunemaker

    Attributes are now alpha sorted in #inspect.

    jnunemaker authored
    Also added explicit inspect test. There are various points it was being tested in the code but no explicit tests for the module.
  4. @jnunemaker
  5. @bkeepers

    Merge branch 'refactor-associations' into rails3

    bkeepers authored
    * refactor-associations:
      Define association accessors on a module instead of directly on the model class
      Extract accessors specific to one and belongs_to associations
      Move code specific to OneAssociation
      Move code specific to many association
      Refactor association base into separate classes instead of using conditionals
    
    Conflicts:
      lib/mongo_mapper/plugins/associations.rb
      lib/mongo_mapper/plugins/callbacks.rb
Commits on Jan 15, 2011
  1. @bkeepers
  2. @bkeepers
Commits on Jan 14, 2011
  1. @bkeepers
  2. @bkeepers

    Merge branch 'master' into rails3

    bkeepers authored
    * master:
      Added ruby-debug
      Fix middleware test on Ruby 1.9
      Fix issue where belongs_to and one associations don't get reset if the value is nil
      Clone default values so they can't be modified
      cosmetics
      Fixed an issue using the association_name= method to assign a new object updated existing pointers to the proxy, rather than generating a new one
      Modified accessor method for one and belongs_to associations to return nil rather than a proxy object if the association does not exist Added additional method calls for build_<name>, create_<name>, and create<name>! since calling .build(), .create(), and .create!() would raise when the association is nil. Discussion from http://groups.google.com/group/mongomapper/browse_thread/thread/e311dd04b0af576f
    
    Conflicts:
      Gemfile
      Gemfile.lock
      lib/mongo_mapper/plugins/callbacks.rb
Commits on Jan 13, 2011
  1. @bkeepers

    Added ruby-debug

    bkeepers authored
  2. @bkeepers

    Fix middleware test on Ruby 1.9

    bkeepers authored
    Rack's MockResponse calls #each on the body, which is not defined on String in Ruby 1.9
  3. @bkeepers
Commits on Jan 12, 2011
  1. @bkeepers
  2. @bkeepers
Commits on Jan 8, 2011
  1. @bkeepers
Commits on Jan 7, 2011
  1. @bkeepers
  2. @bkeepers

    cosmetics

    bkeepers authored
  3. @bkeepers

    Merge branch 'nil_associations' of https://github.com/jaronkk/mongoma…

    bkeepers authored
    …pper
    
    * 'nil_associations' of https://github.com/jaronkk/mongomapper:
      Fixed an issue using the association_name= method to assign a new object updated existing pointers to the proxy, rather than generating a new one
      Modified accessor method for one and belongs_to associations to return nil rather than a proxy object if the association does not exist Added additional method calls for build_<name>, create_<name>, and create<name>! since calling .build(), .create(), and .create!() would raise when the association is nil. Discussion from http://groups.google.com/group/mongomapper/browse_thread/thread/e311dd04b0af576f
  4. @bkeepers

    Merge branch 'master' into rails3

    bkeepers authored
    * master:
      Specify a source in the Gemfile so bundler can find missing gems
      Add a rack middleware to clear the identity map and register it
    
    Conflicts:
      Gemfile
      Gemfile.lock
      mongo_mapper.gemspec
      rails/init.rb
  5. @bkeepers
  6. @bkeepers
  7. @bkeepers

    Merge branch 'master' into rails3

    bkeepers authored
    * master:
      Fixed issue with nested embedded one's not getting _id set properly.
      Optimized in array proxy to not query if ids are blank.
Commits on Jan 4, 2011
  1. @jaronkk

    Fixed an issue using the association_name= method to assign a new obj…

    jaronkk authored
    …ect updated existing pointers to the proxy, rather than generating a new one
Commits on Jan 3, 2011
  1. @jaronkk

    Modified accessor method for one and belongs_to associations to retur…

    jaronkk authored
    …n nil rather than a proxy object if the association does not exist
    
    Added additional method calls for build_<name>, create_<name>, and create<name>! since calling .build(), .create(), and .create!() would raise when the association is nil.
    Discussion from http://groups.google.com/group/mongomapper/browse_thread/thread/e311dd04b0af576f
Commits on Dec 27, 2010
  1. @jnunemaker
  2. @jnunemaker
Commits on Nov 20, 2010
  1. @bkeepers

    Merge branch 'master' into rails3

    bkeepers authored
    * master:
      Option :typecast for key works with Key#get
  2. @bkeepers

    Merge branch 'master' of https://github.com/rainux/mongomapper

    bkeepers authored
    * 'master' of https://github.com/rainux/mongomapper:
      Option :typecast for key works with Key#get
Commits on Nov 5, 2010
  1. @bkeepers

    Merge remote branch 'jnunemaker/master' into rails3

    bkeepers authored
    * jnunemaker/master:
      Bundle update.
      Updated rake file test tasks.
      Fixed one proxy replace with nil value.
      Added safe example.
      Bump to 0.8.6 for connect_to_master => connect.
      Connect to master changed to connect.
      Bump 0.8.5. Just a plucky update.
      Threw bundler into the mix.
      Minor: remove stupid leftover.
      Update plucky dependency (and as such mongo, bson, etc.) and upgrade Binary type to use BSON::Binary instead of BSON::ByteBuffer.
      Quiet down the tests
      remove unnecessary conditional
    
    Conflicts:
    	Gemfile
    	Gemfile.lock
    	Rakefile
    	mongo_mapper.gemspec
  2. @jnunemaker

    Bundle update.

    jnunemaker authored
  3. @jnunemaker
  4. @jnunemaker

    Fixed one proxy replace with nil value.

    jnunemaker authored
    Now actually unassigns target foreign key if target exists.
Commits on Nov 1, 2010
  1. @jnunemaker

    Added safe example.

    jnunemaker authored
Something went wrong with that request. Please try again.