Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-09 20:02:54 +01:00
9 Zeilen
345 B
Ruby
9 Zeilen
345 B
Ruby
|
class CustomWizard::RealtimeValidationController < ::ApplicationController
|
||
|
def validate
|
||
|
params.require(:validation)
|
||
|
params.require(::CustomWizard::RealtimeValidation.types[params[:validation].to_sym][:required_params])
|
||
|
|
||
|
render_json_dump(::CustomWizard::RealtimeValidation.send(params[:validation], params, current_user))
|
||
|
end
|
||
|
end
|