From b685295ed03c4a96f195fbcdd914fd08f226baa6 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Sun, 19 Feb 2023 20:24:54 +1100 Subject: [PATCH] Allow location when creating a post --- app/validation/posts/post_contract.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/validation/posts/post_contract.rb b/app/validation/posts/post_contract.rb index 816bf50..7ec606a 100644 --- a/app/validation/posts/post_contract.rb +++ b/app/validation/posts/post_contract.rb @@ -11,6 +11,7 @@ module Adamantium required(:post_type).value(included_in?: %w[post]) required(:syndicate_to).array(:string) required(:photos).array(:hash) + required(:location).maybe(:string) end end end