lib/goatmail/railtie.rb in goatmail-1.1.1 vs lib/goatmail/railtie.rb in goatmail-1.2.0

- old
+ new

@@ -1,9 +1,9 @@ module Goatmail class Railtie < Rails::Railtie initializer "goatmail.add_delivery_method" do ActiveSupport.on_load :action_mailer do - ActionMailer::Base.add_delivery_method :goatmail, Goatmail::DeliveryMethod, location: Rails.root.join("tmp", "goatmail") + ActionMailer::Base.add_delivery_method :goatmail, Goatmail::DeliveryMethod, location: Goatmail.location end end end if defined? Rails::Railtie end