fixing tests
This commit is contained in:
14
app/logical/moderator/dashboard/queries/comment.rb
Normal file
14
app/logical/moderator/dashboard/queries/comment.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
module Moderator
|
||||
module Dashboard
|
||||
module Queries
|
||||
class Comment
|
||||
attr_reader :comment, :count
|
||||
|
||||
def initialize(hash)
|
||||
@comment = Comment.find(hash["comment_id"])
|
||||
@count = hash["count"]
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user