discourse/lib/discourse_dev/reviewable_post.rb

13 lines
254 B
Ruby

# frozen_string_literal: true
require "discourse_dev/reviewable"
require "faker"
module DiscourseDev
class ReviewablePost < Reviewable
def populate!
@posts.sample(2).each { |post| ::ReviewablePost.queue_for_review(post) }
end
end
end