app/helpers/notifications_helper.rb
# provide link for body of notification card
provide link for body of notification card
provide link for body of notification card
def notification_link(notification)
    notifiable = notification.notifiable
    return '' unless notifiable
    text = if notification.medium?
             medium_notification_card_link(notifiable)
           elsif notification.course?
             course_notification_card_link
           elsif notification.lecture?
             lecture_notification_card_link
           else
             notifiable.details
           end
    text.html_safe
  end
def notification_link ( notification ) notifiable = notification . notifiable return '' unless notifiable text = if notification . medium? medium_notification_card_link ( notifiable ) elsif notification . course? course_notification_card_link elsif notification . lecture? lecture_notification_card_link else notifiable . details end text . html_safe end
provide link for body of notification card
provide link for body of notification card
notification
<not_specific>