|
@@ -13,7 +13,7 @@ module EmailConcern
|
|
|
if options['recipients'].present?
|
|
|
emails = options['recipients']
|
|
|
emails = [emails] if emails.is_a?(String)
|
|
|
- unless emails.all? { |email| email =~ Devise.email_regexp || email =~ /\{\{/ }
|
|
|
+ unless emails.all? { |email| email =~ Devise.email_regexp || email =~ /\{/ }
|
|
|
errors.add(:base, "'when provided, 'recipients' should be an email address or an array of email addresses")
|
|
|
end
|
|
|
end
|
|
@@ -52,4 +52,4 @@ module EmailConcern
|
|
|
def present_hash(hash, skip_key = nil)
|
|
|
hash.to_a.sort_by {|a| a.first.to_s }.map { |k, v| "#{k}: #{v}" unless k.to_s == skip_key.to_s }.compact
|
|
|
end
|
|
|
-end
|
|
|
+end
|