Browsing index pages (3 articles)
↧
Installing MongoDb on Ubuntu Hardy from source with init.d and data dir
After setting up mongo by hand for 2 servers that are not deployed via puppet, here is a bash script to do it… sudo su root cd /opt/ && /usr/bin/curl -OL...
View ArticleAdding chainable scopes and named scopes to MongoMapper
With Scopify chainable scopes and named scopes can be added to any model, for example MongoMapper: MongoMapper::Document::ClassMethods.send(:include, Scopify::ClassMethods)...
View ArticleMaximum and minimum for MongoMapper
A small hack to get minimum/maximum functionality on MongoMapper, its not 100% secure(can be wrong when inserting twice at the same time etc), but good enought for our usecase Usage...
View Article
Browsing index pages (3 articles)