diff --git a/app/models/warning_template.rb b/app/models/warning_template.rb index a1de737c5d52f8c235611a4b6e4fa893651b9f6f..a6da698093457c5cc7f16edf43c976a6b53e2cd8 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']