mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 09:43:53 +08:00
6abc45e57b
And get avatar images from `discourse_dev_assets` gem.
27 lines
369 B
Ruby
27 lines
369 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'faker'
|
|
|
|
module Faker
|
|
class Discourse < Base
|
|
class << self
|
|
|
|
def tag
|
|
fetch('discourse.tags')
|
|
end
|
|
|
|
def category
|
|
fetch('discourse.categories')
|
|
end
|
|
|
|
def group
|
|
fetch('discourse.groups')
|
|
end
|
|
|
|
def topic
|
|
fetch('discourse.topics')
|
|
end
|
|
end
|
|
end
|
|
end
|