app/helpers/notifications_helper.rb
# create text for notification in notification dropdown menu
create text for notification in notification dropdown menu
create text for notification in notification dropdown menu
def notification_menu_item_header(notification)
    notifiable = notification.notifiable
    return '' unless notifiable
    return medium_notification_item_header(notifiable) if notification.medium?
    return course_notification_item_header(notifiable) if notification.course?
    return lecture_notification_item_header(notifiable) if notification.lecture?
    announcement_notification_item_header(notifiable)
  end
def notification_menu_item_header ( notification ) notifiable = notification . notifiable return '' unless notifiable return medium_notification_item_header ( notifiable ) if notification . medium? return course_notification_item_header ( notifiable ) if notification . course? return lecture_notification_item_header ( notifiable ) if notification . lecture? announcement_notification_item_header ( notifiable ) end
create text for notification in notification dropdown menu
create text for notification in notification dropdown menu
notification
<not_specific>