Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtOfCode- committed Jul 2, 2020
1 parent 866442d commit f3dccd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/warning_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
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']
Expand Down

0 comments on commit f3dccd4

Please sign in to comment.