Allow empty content for checkin

This commit is contained in:
2023-02-25 13:36:08 +11:00
parent a14e00a0c6
commit f6641ddffd

View File

@@ -33,7 +33,7 @@ module Adamantium
def prepare_params(params:)
attrs = params.to_h
attrs[:content] = renderer.call(content: attrs[:content])
attrs[:content] = renderer.call(content: attrs[:content]) if attrs[:content]
attrs
end
end