Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-10 04:12:53 +01:00
c45e51fcb6
* Code formatting * Both "type" and "name" are used to refer to the validation type. Changed all to "type". * Added proper abstraction of realtime validation classes on server * UI improvements in admin and wizard
14 Zeilen
263 B
Ruby
14 Zeilen
263 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CustomWizard::RealtimeValidation
|
|
cattr_accessor :types
|
|
|
|
@@types ||= {
|
|
similar_topics: {
|
|
types: [:text],
|
|
component: "similar-topics-validator",
|
|
backend: true,
|
|
required_params: []
|
|
}
|
|
}
|
|
end
|