Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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
Add Comment
Please, Sign In to add comment