mirror of
https://github.com/discourse/discourse.git
synced 2024-12-21 15:33:47 +08:00
7b437c9401
We're planning to implement a feature that allows adding required fields for existing users. This PR does some preparatory refactoring to make that possible. There should be no changes to existing behaviour. Just a small update to the admin UI.
10 lines
211 B
Ruby
10 lines
211 B
Ruby
# frozen_string_literal: true
|
|
|
|
Fabricator(:user_field) do
|
|
name { sequence(:name) { |i| "field_#{i}" } }
|
|
description "user field description"
|
|
field_type "text"
|
|
editable true
|
|
requirement "on_signup"
|
|
end
|