summaryrefslogtreecommitdiff
path: root/app/models/member.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-03-29 13:37:43 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-03-30 10:44:20 +0200
commit86418c475be1b2a37e89682bc87055b7372bbcfb (patch)
tree4e4b092269cc3919ae72184414a07c63b03effc4 /app/models/member.rb
parent08b3d7f6ef23b7a8a83c7e71e2d04f6416e73406 (diff)
downloadgitlab-ce-86418c475be1b2a37e89682bc87055b7372bbcfb.tar.gz
Remove useless Notification model
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/models/member.rb')
-rw-r--r--app/models/member.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/member.rb b/app/models/member.rb
index 799f28c3fdf..cbcc54c0250 100644
--- a/app/models/member.rb
+++ b/app/models/member.rb
@@ -171,8 +171,8 @@ class Member < ActiveRecord::Base
end
end
- def notification
- @notification ||= user.notification_settings.find_by(source: source)
+ def notification_setting
+ @notification_setting ||= user.notification_settings.find_by(source: source)
end
private