Skip to content
Snippets Groups Projects
Commit f3dccd49 authored by ArtOfCode-'s avatar ArtOfCode-
Browse files

s

parent 866442dc
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ require 'base64' ...@@ -3,7 +3,7 @@ require 'base64'
class WarningTemplate < ApplicationRecord class WarningTemplate < ApplicationRecord
include CommunityRelated include CommunityRelated
validate :name, uniqueness: { scope: [:community_id] } validates :name, uniqueness: { scope: [:community_id] }
def body_as_b64 def body_as_b64
body_with_site_replacements = body.gsub '$SiteName', SiteSetting['SiteName'] body_with_site_replacements = body.gsub '$SiteName', SiteSetting['SiteName']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment