class Cal
	include Mongoid::Document
	include Mongoid::Timestamps

	field :name, localize: true
	field :color
	has_many :events, :autosave => true, :dependent => :destroy
	accepts_nested_attributes_for :events, :allow_destroy => true
end