lib/ahoy_email/processor.rb in ahoy_email-2.0.3 vs lib/ahoy_email/processor.rb in ahoy_email-2.1.0

- old
+ new

@@ -121,10 +121,10 @@ # to_s prevent to return nil from this method Addressable::URI.heuristic_parse(href.to_s) rescue nil end def url_for(opt) - opt = (ActionMailer::Base.default_url_options || {}) + opt = (mailer.default_url_options || {}) .merge(options[:url_options]) .merge(opt) AhoyEmail::Engine.routes.url_helpers.url_for(opt) end