mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Apply syntax_tree formatting to app/*
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class EmailStyleUpdater
|
||||
|
||||
attr_reader :errors
|
||||
|
||||
def initialize(user)
|
||||
@@ -10,11 +9,8 @@ class EmailStyleUpdater
|
||||
end
|
||||
|
||||
def update(attrs)
|
||||
if attrs.has_key?(:html) && !attrs[:html].include?('%{email_content}')
|
||||
@errors << I18n.t(
|
||||
'email_style.html_missing_placeholder',
|
||||
placeholder: '%{email_content}'
|
||||
)
|
||||
if attrs.has_key?(:html) && !attrs[:html].include?("%{email_content}")
|
||||
@errors << I18n.t("email_style.html_missing_placeholder", placeholder: "%{email_content}")
|
||||
end
|
||||
|
||||
if attrs.has_key?(:css)
|
||||
|
||||
Reference in New Issue
Block a user