app/mailers/rad_social_mailer.rb in trusty-cms-5.3.3 vs app/mailers/rad_social_mailer.rb in trusty-cms-5.3.4
- old
+ new
@@ -8,10 +8,10 @@
from_address.display_name = options[:from_name] # ex: "John Doe"
@from_name = from_address.display_name
@from_email = from_address
@message = options[:message]
- @actual_from = ENV['RAD_SOCIAL_FROM_EMAIL']
+ @actual_from = ENV.fetch('RAD_SOCIAL_FROM_EMAIL')
@actual_from = from_address if @actual_from.nil?
mail({
to: options[:to],
from: @actual_from,