app/helpers/announcements_helper.rb
# make announcements cards colored if the announcement is active
make announcements cards colored if the announcement is active
make announcements cards colored if the announcement is active
def news_card_color(announcement)
    return '' unless user_signed_in?
    return 'bg-post-it-blue' if announcement.active?(current_user)
    ''
  end
def news_card_color ( announcement ) return '' unless user_signed_in? return 'bg-post-it-blue' if announcement . active? ( current_user ) '' end
make announcements cards colored if the announcement is active
make announcements cards colored if the announcement is active
announcement
<not_specific>