Something to get the discussion started...
Just in case.
More intuitivate :required => true for Boolean types.
validates_presence_of :field doesn't work for a Boolean field because false is considered blank. Instead you have to use validates_inclusions_of :field, :in => [true, false]. This is a known annoyance of AR. We can make this better in MongoMapper by having the :required shortcut do the right thing. So if you do: key :field, String, :required => true Then it does a validates_presence_of :field. But if you do: key :flag, Boolean, :required => true It does a validates_inclusion_of :field, :in => [true, false]
Fix: Uninitialized Class Variable @@database_name
Preserve millisecond values on times [Fixes #308]
Added support for options for atomic modifiers plugin. This enables pass...
… any more options get added to the ruby driver, we won't have to do any additional logic to pass those options through
…oreign key, so that IDs are properly cast.
…s instead of forcing it in the keys argument hash
…assing :upsert and :safe options to the modifier operation.
…pdate specific key
Make MongoMapper.setup work with symbol environment parameter.
…o Sinatra's settings.environment value can be used.