diff options
author | Valery Sizov <valery@gitlab.com> | 2015-12-02 08:50:00 +0200 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2015-12-02 08:50:00 +0200 |
commit | e6dadea3891358ac7ed34dbb31eac403c193fcdc (patch) | |
tree | 1d92a572c6e21124d5f5ab5d30f000741645b934 /app/models/user.rb | |
parent | ebe0c67ead12797d4d5c5842c2e4afc6bb33df38 (diff) | |
download | gitlab-ce-e6dadea3891358ac7ed34dbb31eac403c193fcdc.tar.gz |
git rid of deprecated warningsdeprecated_warnings
Diffstat (limited to 'app/models/user.rb')
-rw-r--r-- | app/models/user.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index e1144ca77be..15aab315649 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -794,4 +794,9 @@ class User < ActiveRecord::Base Gitlab::SQL::Union.new([personal_projects.select(:id), groups.select(:id), other.select(:id)]) end + + # Added according to https://github.com/plataformatec/devise/blob/7df57d5081f9884849ca15e4fde179ef164a575f/README.md#activejob-integration + def send_devise_notification(notification, *args) + devise_mailer.send(notification, self, *args).deliver_later + end end |