diff options
author | Zeger-Jan van de Weg <mail@zjvandeweg.nl> | 2016-01-11 14:23:45 +0100 |
---|---|---|
committer | Zeger-Jan van de Weg <mail@zjvandeweg.nl> | 2016-01-11 14:23:45 +0100 |
commit | be08490863b76026b8f3ffbc422cb7f5d8b4a6a4 (patch) | |
tree | f8d6e28e262c1081b3b30bc45737b915c716c7ab /app/controllers/sent_notifications_controller.rb | |
parent | 26cedc7e0bd83fc488da3a4dc5265d395639215f (diff) | |
download | gitlab-ce-be08490863b76026b8f3ffbc422cb7f5d8b4a6a4.tar.gz |
#can_unsubscribe? -> #?unsubscribable?
Diffstat (limited to 'app/controllers/sent_notifications_controller.rb')
-rw-r--r-- | app/controllers/sent_notifications_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/sent_notifications_controller.rb b/app/controllers/sent_notifications_controller.rb index b7008c82bf2..7271c933b9b 100644 --- a/app/controllers/sent_notifications_controller.rb +++ b/app/controllers/sent_notifications_controller.rb @@ -3,7 +3,7 @@ class SentNotificationsController < ApplicationController def unsubscribe @sent_notification = SentNotification.for(params[:id]) - return render_404 unless @sent_notification && @sent_notification.can_unsubscribe? + return render_404 unless @sent_notification && @sent_notification.unsubscribable? noteable = @sent_notification.noteable noteable.unsubscribe(@sent_notification.recipient) |