feature/share-libs
rb 10 lines 445 Bytes
Raw
1 class DeviseMailer < Devise::Mailer
2 helper :application # gives access to all helpers defined within `application_helper`.
3 include Devise::Controllers::UrlHelpers # Optional. eg. `confirmation_url`
4 default template_path: 'devise/mailer' # to make sure that your mailer uses the devise views
5
6 def confirmation_instructions(record, token, opts = {})
7 @host = Rails.env.production? ? 'musik88.com' : 'localhost:3001'
8 super
9 end
10 end