Permalink
Commits on Mar 24, 2011
  1. Fix issue with dirty tracking that would cause it store every attribu…

    …te in #previous_changes when loading from the DB
    
    This should have some performance impact, especially for models with a lot of attributes.
    bkeepers committed Mar 24, 2011
Commits on Mar 21, 2011
  1. Merge branch 'master' of https://github.com/brianhempel/mongomapper

    * 'master' of https://github.com/brianhempel/mongomapper:
      Fix for Ruby 1.9 assigning associations on create (keep respond_to_missing? on association proxy)
      Test for assigning associations on create
      Fix mmconsole exploding in Ruby 1.8.7
    bkeepers committed Mar 21, 2011
  2. Remove unnecessary require

    bkeepers committed Mar 20, 2011
  3. Extend ActiveSupport::DescendantsTracker before defining keys

    Without this, calling #descendants on a class will cause it to walk the entire ObjectSpace, which was happening whenever a new model was defined. This change cut the tests from ~90 secs to ~25 secs on my machine.
    bkeepers committed Mar 20, 2011
Commits on Mar 20, 2011
  1. Fix watchr

    bkeepers committed Mar 20, 2011
  2. Use #persisted? instead of #new? internally

    ActiveModel::Lint requires the presence of #persisted?, but not #new?. This allows MM to play nicer with other ActiveModel ORMs (belongs_to should JustWork now with ActiveRecord models).
    bkeepers committed Mar 20, 2011
Commits on Mar 18, 2011
  1. Fix for Ruby 1.9 assigning associations on create (keep respond_to_mi…

    …ssing? on association proxy)
    brianhempel committed Mar 18, 2011
Commits on Mar 16, 2011
  1. Switched from hash with indifferent access to plain hash.

    Indifferent hashes seem to be pretty slow. This helps things out a bit. Using string keys for keys because they can be injected dynamically by users and thus an attack could be formed if symbols were used. Using symbols for associations.
    jnunemaker committed Mar 16, 2011
  2. Removed after_find and after_initialize callbacks.

    This removed about 30% of the time spent in finding documents. Big time improvement for something that is not worth much.
    jnunemaker committed Mar 16, 2011
Commits on Mar 8, 2011
  1. Set logger on connection to Rails.logger

    Closes #216
    bkeepers committed Mar 8, 2011
  2. Merge branch 'master' of git://github.com/collectiveidea/mongomapper

    * 'master' of git://github.com/collectiveidea/mongomapper:
      Add an :autosave association option, defaulting to true for "many" and embedded "one" associations to remain consistent with current behavior.
      Add an :autosave option for belongs_to associations.
      Add build_*, create_* and create_*! methods to belongs_to associations.
    bkeepers committed Mar 8, 2011
  3. Bump version to 0.9.0

    bkeepers committed Mar 8, 2011
  4. Revert "Deprecation warnings tell us what module is offending". This …

    …causes an error in my application.
    
    This reverts commit cc72ed0.
    bkeepers committed Mar 8, 2011
Commits on Mar 7, 2011
  1. Add an :autosave association option, defaulting to true for "many" an…

    …d embedded "one" associations to remain consistent with current behavior.
    laserlemon committed Mar 7, 2011
Commits on Feb 21, 2011
  1. Merge branch 'master' of https://github.com/brianhempel/mongomapper

    * 'master' of https://github.com/brianhempel/mongomapper:
      Deprecation warnings tell us what module is offending
    bkeepers committed Feb 21, 2011
  2. Properly handle i18n

    bkeepers committed Feb 21, 2011
Commits on Feb 18, 2011
Commits on Feb 14, 2011
  1. Deprecation warnings tell us what module is offending

    Brian Hempel committed Feb 14, 2011
  2. Ensure that foreign keys are properly inferred within "many" associat…

    …ions for namespaced models.
    laserlemon committed Feb 14, 2011
Commits on Feb 8, 2011
  1. Merge branch 'master' of https://github.com/vuze/mongomapper into vuz…

    …e-master
    
    Conflicts:
      lib/mongo_mapper/plugins/embedded_document.rb
    jnunemaker committed Feb 8, 2011
  2. Create far fewer arrays.

    Contributed by cheald:
    cheald@fbbcfef
    jnunemaker committed Feb 8, 2011
Commits on Feb 3, 2011
  1. update plugin example

    bkeepers committed Feb 3, 2011
Commits on Feb 2, 2011
  1. Merge branch 'concerns'

    * concerns:
      Deprecate .append_inclusions and .append_extensions in favor of using .plugin
      ActiveSupport::Concern tweaks
      Use ActiveSupport::Concern for Document and Embedded Document
      Deprecate plugin structure in favor of using ActiveSupport::Concern
    bkeepers committed Feb 2, 2011
  2. Merge branch 'rails3' into concerns

    * rails3: (49 commits)
      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.
      Define association accessors on a module instead of directly on the model class
      Extract accessors specific to one and belongs_to associations
      Fix test for recent association changes
      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
      Move code specific to OneAssociation
      Move code specific to many association
      Clone default values so they can't be modified
      Refactor association base into separate classes instead of using conditionals
      cosmetics
      Specify a source in the Gemfile so bundler can find missing gems
      Add a rack middleware to clear the identity map and register it
      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
      ...
    bkeepers committed Feb 2, 2011