Permalink
Commits on Oct 5, 2009
  1. Version bump to 0.4.2

    jnunemaker committed Oct 5, 2009
  2. String#from_mongo now returns emtpy string if given value of empty st…

    jnunemaker committed Oct 5, 2009
    …ring. Works just like String#to_mongo.
Commits on Oct 4, 2009
  1. Version bump to 0.4.1

    jnunemaker committed Oct 4, 2009
  2. Allow defining per_page class method to set pagination on document ju…

    jnunemaker committed Oct 4, 2009
    …st like will paginate. (leshill)
  3. Moved custom matchers into their own file and out of test helper. Als…

    jnunemaker committed Oct 4, 2009
    …o using collection.clear instead of delete_all to clean the collections.
Commits on Oct 3, 2009
  1. API CHANGE: To change a document's collection, you should now use set…

    jnunemaker committed Oct 3, 2009
    …_collection_name instead of collection. Collection now lazy loads from collection name to make another step towards loading things in a more sane way in rails.
Commits on Oct 2, 2009
  1. Version bump to 0.4.0

    jnunemaker committed Oct 2, 2009
  2. Added embedded document new? method back in. Not perfect but I have a…

    jnunemaker committed Oct 2, 2009
    … plan and it is good enough for now.
  3. Completed the transition to to_mongo/from_mongo from all the typecast…

    jnunemaker committed Oct 2, 2009
    …ing stuff. This means now you can use any famdamily class you want as a type as long as you define to_mongo/from_mongo class methods for it.
    
    Switched all the native types to use to_mongo/from_mongo which makes things a lot cleaner I think.
    
    Added Binary type for easily serializing files under 4MB into documents with no effort. Yay!
  4. Merge branch 'custom_types' of git://github.com/pietern/mongomapper i…

    jnunemaker committed Oct 2, 2009
    …nto pietern/custom_types
    
    Conflicts:
    	lib/mongomapper/key.rb
  5. FIX : Documents that inherit from another document don't inherit the …

    jnunemaker committed Oct 2, 2009
    …parent's class associations (pointcom)
  6. Minor: style changes.

    jnunemaker committed Oct 2, 2009
  7. Removed array serializing. I have a different idea for that.

    jnunemaker committed Oct 2, 2009
    Changed embedded document new_record? to new? and aliased it in rails compat module.
  8. Serialize arbitrary object within an Array key

    Dave Ott and Sandro Turriate committed with jnunemaker Sep 29, 2009
    store and retrieve instances of Thing:
    class Example
      include MongoMapper::Document
      key :things, Array, :serialize => Thing
    end
    
    example.things << Thing.new
  9. validate_uniqueness_of has scope option

    Durran Jordan and Sandro Turriate committed with jnunemaker Sep 22, 2009