diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-12-03 13:23:43 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-12-03 13:23:43 +0100 |
commit | 66affb83fb36a29d2526d0a5b10b1330987ede28 (patch) | |
tree | 96ed5ba207ff95820dd6de3cc5474050ffbe24b5 /app/models/user.rb | |
parent | 5a59712b8ac29450dfef0af0dd381529f0d9d7ae (diff) | |
parent | 6689224a90f3d2500be5d927ea1ed9656fc7b1b6 (diff) | |
download | gitlab-ce-66affb83fb36a29d2526d0a5b10b1330987ede28.tar.gz |
Merge branch 'master' into ui/dashboard-new-issue
Diffstat (limited to 'app/models/user.rb')
-rw-r--r-- | app/models/user.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index e1144ca77be..719b49b16fe 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -690,7 +690,7 @@ class User < ActiveRecord::Base end def starred?(project) - starred_projects.exists?(project) + starred_projects.exists?(project.id) end def toggle_star(project) @@ -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 |