Permalink
Commits on Jul 28, 2009
  1. Version bump to 0.3.1

    jnunemaker committed Jul 28, 2009
  2. Updated history.

    jnunemaker committed Jul 28, 2009
  3. Updated history.

    jnunemaker committed Jul 28, 2009
  4. Version bump to 0.3.0

    jnunemaker committed Jul 28, 2009
  5. Removed errant comment.

    jnunemaker committed Jul 28, 2009
  6. Moved rails compat stuff into document and embedded document modules …

    jnunemaker committed Jul 28, 2009
    …inside of RailsCompatibility module.
  7. Renamed rails compat modules to be more consistent. Removed deep merg…

    jnunemaker committed Jul 28, 2009
    …e from first and last as they don't need it.
  8. find(:first) and find(:last) and their other similar methods now usin…

    jnunemaker committed Jul 28, 2009
    …g $natural order instead of date which was unreliable.
  9. _id is now stored in binary format as recommended by MongoDB team. Th…

    jnunemaker committed Jul 28, 2009
    …is is a data breaking change.
    
    If you have data in production using MongoMapper, you'll have to
    manually convert anything using the old string format to use the
    binary representation. You'll definitely want to remove access from the
    server while this is happening by stopping your web app.
    
    If you are in development, all you have to do is clear all your collections
    and start over. No biggie at all.
Commits on Jul 27, 2009
  1. Added scoped paginate to many association. Fixed two bugs in paginati…

    jnunemaker committed Jul 27, 2009
    …on where it wasn't counting or setting the offset correctly.
  2. Added deep_merge gem.

    jnunemaker committed Jul 27, 2009
  3. Embedded attributes are now included with attributes as they should h…

    jnunemaker committed Jul 27, 2009
    …ave been in the first place.
    
    Shredded a bunch of code that isn't needed anymore. Yay!
  4. Added boolean methods for keys that return true or false based on whe…

    jnunemaker committed Jul 27, 2009
    …ther they have value present.
  5. Now defining accessor methods when key is declared rather than using …

    jnunemaker committed Jul 27, 2009
    …method missing and all that jazz to work with attributes. This seems more straightforward.
  6. Added unit tests for association/base.rb. Split out association model…

    jnunemaker committed Jul 27, 2009
    …s in test/models.rb for sharing amongst tests.
  7. Added tests for changing class names for many documents, many embedde…

    jnunemaker committed Jul 27, 2009
    …d documents and belongs to.
  8. Document#create now creates even if no attributes are provided. Added…

    jnunemaker committed Jul 27, 2009
    … test for belongs_to and changing the class name.
  9. Updated history.

    jnunemaker committed Jul 27, 2009
  10. Bumped version of validatable so MongoMapper now has symbol/string to…

    jnunemaker committed Jul 27, 2009
    … proc support for validations with :if option.
    
    Something like the following is now possible:
    
      class User
        include MongoMapper::Document
        key :password, String
        validates_presence_of :password, :if => :password_required?
      end
  11. Updated history.

    jnunemaker committed Jul 27, 2009
  12. No longer defaulting Array in conditions to $in. Now only does it if …

    jnunemaker committed Jul 27, 2009
    …another modifier starting with $ is not already present. Fixes #35.
  13. Defining BasicObject if it doesn't exist. It does in 1.9 so mine is i…

    jnunemaker committed Jul 27, 2009
    …gnored. In 1.8 it is not defined so this will create it. PaginationProxy now inherits from BasicObject.