application_mailer.rb 224 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 12 class ApplicationMailer < ActionMailer::Base attr_accessor :environment def default_url_options options = nil options ||= {} options[:host] = environment.default_hostname if environment options end end