asciinema.org/app/mailers/notifications.rb
2014-10-17 20:24:22 +02:00

15 lines
308 B
Ruby

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