Commit a6ab28d3 authored by Guillaume Grossetie's avatar Guillaume Grossetie

Make sure that kroki_url is present before validation

parent 04c41cb3
......@@ -135,6 +135,7 @@ class ApplicationSetting < ApplicationRecord
system_hook_url: {
blocked_message: "is blocked: %{exception_message}. " + KROKI_URL_ERROR_MESSAGE
},
presence: true,
if: :kroki_url_absolute?
validate :validate_kroki_url
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment