ryanb / letter_opener

Preview mail in the browser instead of sending.
MIT License
3.71k stars 236 forks source link

Change location #136

Closed nicolas-besnard closed 7 years ago

nicolas-besnard commented 7 years ago

I'd like to change the default location Rails.root.join('tmp', 'letter_opener') by a custom way.

Is there any way to achieve that ?

nashby commented 7 years ago

You can put following into your initializers folder:

ActionMailer::Base.add_delivery_method :letter_opener, LetterOpener::DeliveryMethod, :location => Rails.root.join("tmp", "some_path")