Orbit/app/models/tagging.rb

9 lines
173 B
Ruby
Raw Normal View History

class Tagging
include Mongoid::Document
include Mongoid::Timestamps
field :to_destroy, default: false
belongs_to :tag
belongs_to :taggable, polymorphic: true
end