From f3dccd4943d01a7c6471221ce05bf71d2690f792 Mon Sep 17 00:00:00 2001
From: ArtOfCode- <hello@artofcode.co.uk>
Date: Thu, 2 Jul 2020 01:14:14 +0100
Subject: [PATCH] s

---
 app/models/warning_template.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/models/warning_template.rb b/app/models/warning_template.rb
index a1de737c5..a6da69809 100644
--- a/app/models/warning_template.rb
+++ b/app/models/warning_template.rb
@@ -3,7 +3,7 @@ require 'base64'
 class WarningTemplate < ApplicationRecord
   include CommunityRelated
 
-  validate :name, uniqueness: { scope: [:community_id] }
+  validates :name, uniqueness: { scope: [:community_id] }
 
   def body_as_b64
     body_with_site_replacements = body.gsub '$SiteName', SiteSetting['SiteName']
-- 
GitLab