Split categories for form request

This commit is contained in:
2023-08-06 18:26:59 +10:00
parent 744d3538ca
commit 7a0df88e6e

View File

@@ -84,7 +84,7 @@ module Adamantium
name: params[:name],
slug: params[:slug] || params[:"mp-slug"],
published_at: (params[:"post-status"] == "draft") ? nil : publish_time,
category: params[:category] || [],
category: params[:category].split(",") || [],
photos: photos,
location: params[:location],
content: content