spec/mongoid/models/post.rb in voteable_mongo-0.9.2 vs spec/mongoid/models/post.rb in voteable_mongo-0.9.3
- old
+ new
@@ -7,9 +7,11 @@
field :title
field :content
has_and_belongs_to_many :categories
has_many :comments
-
+
+ key :title
+
voteable self, :up => +1, :down => -1, :index => true
voteable Category, :up => +3, :down => -5, :update_counters => false
end