module SocialStream::Controllers::MarkNotificationsRead

Common methods added to ApplicationController

Public Instance Methods

mark_notifications_read() click to toggle source

Mark notifications read when following a link

# File lib/social_stream/controllers/mark_notifications_read.rb, line 12
def mark_notifications_read
  return if params[:notification_id].blank? or !user_signed_in?
  n = Notification.find(params[:notification_id])
  current_subject.mark_as_read n
end