Orbit/app/models/tagging.rb

9 lines
173 B
Ruby
Raw Normal View History

2013-04-26 03:18:57 +00:00
class Tagging
include Mongoid::Document
include Mongoid::Timestamps
field :to_destroy, default: false
belongs_to :tag
belongs_to :taggable, polymorphic: true
end