Sha256: 836c191e478f284b89b23b94e72be4fec3d41ebdb3a1936e359e64ffbeeebd60

Contents?: true

Size: 232 Bytes

Versions: 2

Compression:

Stored size: 232 Bytes

Contents

module AnnouncementsHelper
  def announcement_hidden?(announcement)
    cookies["announcement_#{announcement.created_at}"] == "hidden"
  end

  def current_announcement
    @current_announcement ||= Announcement.current
  end
end


Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
paul_revere-0.1.2 app/helpers/announcements_helper.rb
paul_revere-0.1.1 app/helpers/announcements_helper.rb