Skip to content

Instantly share code, notes, and snippets.

@dgalarza
Created December 10, 2010 03:40
Show Gist options
  • Save dgalarza/735730 to your computer and use it in GitHub Desktop.
Save dgalarza/735730 to your computer and use it in GitHub Desktop.
Mongodb Model Inheritance is win
# Base class that all WoW Armory based resources will inherit from
class ArmoryModel
include Mongoid::Document
field :last_armory_update, :type => Date
end
class UserCharacter < ArmoryModel
end
class TalentSpec < ArmoryModel
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment