Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (8 sloc) 230 Bytes
module AnnouncementsHelper
def announcement_hidden?(announcement)
cookies["announcement_#{announcement.created_at}"] == "hidden"
end
def current_announcement
@current_announcement ||= Announcement.current
end
end
Jump to Line
Something went wrong with that request. Please try again.