Changes moderation/comments to allow for different commentable_types

This commit is contained in:
kikito
2015-08-22 09:15:20 +02:00
parent 00b51bbc23
commit 4f0c49f921
4 changed files with 14 additions and 6 deletions

View File

@@ -30,6 +30,10 @@ class Comment < ActiveRecord::Base
commentable if commentable.class == Debate
end
def author_id
user_id
end
def author
user
end