mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
DEV: move discourse_dev
gem to the core. (#13360)
And get avatar images from `discourse_dev_assets` gem.
This commit is contained in:
26
lib/faker/discourse.rb
Normal file
26
lib/faker/discourse.rb
Normal file
@ -0,0 +1,26 @@
|
||||
# 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
|
Reference in New Issue
Block a user