Commit 4929361f by Rocky Duan

add taggable gem

parent 8e94bfd8
......@@ -28,6 +28,7 @@ gem 'delayed_job_mongoid'
gem 'mongoid-tree', :git => 'git@github.com:dementrock/mongoid-tree.git', :branch => "mongoid-2.0"
gem 'voteable_mongo', :git => 'git@github.com:dementrock/voteable_mongo.git'
gem 'mongoid_taggable', :git => 'git@github.com:dementrock/mongoid_taggable.git'
gem 'sunspot'
gem 'sunspot_solr'
......
......@@ -3,6 +3,7 @@ require_relative 'content'
class CommentThread < Content
include Mongo::Voteable
include Mongoid::Timestamps
include Mongoid::Taggable
voteable self, :up => +1, :down => -1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment