Sha256: 529491e96cdfcef507523ac312d83a7dc77e5f30949fd6b67811c351cb32b418

Contents?: true

Size: 230 Bytes

Versions: 10

Compression:

Stored size: 230 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

10 entries across 10 versions & 1 rubygems

Version Path
paul_revere-1.4 app/helpers/announcements_helper.rb
paul_revere-1.3 app/helpers/announcements_helper.rb
paul_revere-1.2 app/helpers/announcements_helper.rb
paul_revere-1.1 app/helpers/announcements_helper.rb
paul_revere-1.0 app/helpers/announcements_helper.rb
paul_revere-0.2.1 app/helpers/announcements_helper.rb
paul_revere-0.2.0 app/helpers/announcements_helper.rb
paul_revere-0.1.5 app/helpers/announcements_helper.rb
paul_revere-0.1.4 app/helpers/announcements_helper.rb
paul_revere-0.1.3 app/helpers/announcements_helper.rb