mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 08:43:45 +08:00
26 lines
368 B
Ruby
26 lines
368 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
|