asciinema.org/app/mailers/notifications.rb

15 lines
308 B
Ruby
Raw Normal View History

2014-10-12 18:36:31 +00:00
class Notifications < ActionMailer::Base
default from: CFG.from_email
def self.delay_login_request(user_id, token)
delay.login_request(user_id, token)
end
def login_request(user_id, token)
user = User.find(user_id)
@login_url = login_token_url(token)
mail to: user.email
end
end