Skip to content

Instantly share code, notes, and snippets.

@jmervine
Created May 24, 2012 18:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmervine/2783152 to your computer and use it in GitHub Desktop.
Save jmervine/2783152 to your computer and use it in GitHub Desktop.
require 'mongomapper'
class Collection
include MongoMapper::Document
# default collection name is "collections" which
# looks for 'db.collections' in mongo.
set_collection_name "some_collections"
# new collection name is "some_collections" which
# looks for 'db.some_collections' in mongo.
key :some_data, String
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment