Sha256: c6c67827026a03e186627073366ad6e60fefe27302e464ac49c4f2dab556b609
Contents?: true
Size: 647 Bytes
Versions: 1
Compression:
Stored size: 647 Bytes
Contents
# frozen_string_literal: true require 'discourse_dev/record' require 'rails' require 'faker' module DiscourseDev class User < Record def initialize(count = DEFAULT_COUNT) super(::User, count) end def data name = Faker::Name.name email = Faker::Internet.email(name: name) username = Faker::Internet.username(specifier: name)[0, SiteSetting.max_username_length] username_lower = username.downcase { name: name, email: email, username: username, username_lower: username_lower, trust_level: Faker::Number.between(from: 1, to: 4) } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
discourse_dev-0.0.1 | lib/discourse_dev/user.rb |