Use blank in save display because file attributes are never nil
Some checks failed
/ Run tests (push) Successful in 1m38s
/ Run system tests (push) Failing after 2m5s
/ Build, push and deploy image (push) Successful in 3m9s

This commit is contained in:
david 2024-11-12 22:57:47 +01:00
parent 2f1566718e
commit 84fc1d2d93

View file

@ -20,7 +20,7 @@ module ApplicationHelper
end
def safe_display(value, &block)
return unless value
return if value.blank?
yield(value)
end