Skip to content

Instantly share code, notes, and snippets.

@brianhempel
Created December 17, 2010 19:51
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 brianhempel/745588 to your computer and use it in GitHub Desktop.
Save brianhempel/745588 to your computer and use it in GitHub Desktop.
# single collection inheritance
# all will be stored in the Person collection in the db
class Person
include MongoMapper::Document
end
class Registree < Person
key :visitor, Boolean
scope :vistors, :visitor => true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment