lib/ahoy_email/mailer.rb in ahoy_email-2.3.1 vs lib/ahoy_email/mailer.rb in ahoy_email-2.4.0
- old
+ new
@@ -61,9 +61,12 @@
options[key] = v.respond_to?(:call) ? instance_exec(&v) : v
# only call other options if needed
if options[key]
AhoyEmail::Utils::OPTION_KEYS[key].each do |k|
+ # make sure html5 only called once
+ next if options.key?(k)
+
v = ahoy_options[k]
options[k] = v.respond_to?(:call) ? instance_exec(&v) : v
end
end
end