adds voting methods to comment model [#25]
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
class Comment < ActiveRecord::Base
|
||||
acts_as_nested_set scope: [:commentable_id, :commentable_type]
|
||||
acts_as_votable
|
||||
|
||||
validates :body, presence: true
|
||||
validates :user, presence: true
|
||||
|
||||
Reference in New Issue
Block a user