Permalink
Commits on Jul 28, 2009
  1. Updated history.

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

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

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

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

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

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

    …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.
    jnunemaker committed Jul 28, 2009
Commits on Jul 27, 2009
  1. Added scoped paginate to many association. Fixed two bugs in paginati…

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

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

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

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

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

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

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

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

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

    … 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
    jnunemaker committed Jul 27, 2009
  11. Updated history.

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

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

    …gnored. In 1.8 it is not defined so this will create it. PaginationProxy now inherits from BasicObject.
    jnunemaker committed Jul 27, 2009
  14. Separating functional and unit tests. Functional hit the database and…

    … unit don't.
    
    Added a note on testing for those that are contributing.
    jnunemaker committed Jul 26, 2009
  15. Split RailsCompatibility into EmbeddedDocumentRailsCompatibility and …

    …DocumentRailsCompatibility.
    fcoury committed with jnunemaker Jul 20, 2009