0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-22 09:20:29 +01:00

revert deletions of redundant spaces continued#3

Dieser Commit ist enthalten in:
Robert Barrow 2020-05-24 08:38:54 +01:00
Ursprung d3e7fceb56
Commit beed6a93fc

Datei anzeigen

@ -116,10 +116,10 @@ class CustomWizard::Mapper
end end
end end
end end
def validation_result(key, value, operator) def validation_result(key, value, operator)
result = nil result = nil
if operator.is_a?(Hash) && (operator = operator[value.to_sym]).present? if operator.is_a?(Hash) && (operator = operator[value.to_sym]).present?
if value == "present" if value == "present"
result = key.public_send(operator) result = key.public_send(operator)