Commit 897b6b3f authored by Guillaume Grossetie's avatar Guillaume Grossetie

Validate Kroki URL if Kroki is enabled

parent a6ab28d3
......@@ -138,7 +138,7 @@ class ApplicationSetting < ApplicationRecord
presence: true,
if: :kroki_url_absolute?
validate :validate_kroki_url
validate :validate_kroki_url, if: :kroki_enabled
validates :plantuml_url,
presence: true,
......
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