Sha256: 084ba795217dc3d9b6cc9ad635f9644269a11cb2ce69d40dfb69eaca71e7a7ba

Contents?: true

Size: 323 Bytes

Versions: 4

Compression:

Stored size: 323 Bytes

Contents

module Hatchy
  class AnnouncementsController < ApplicationController
    skip_before_filter :authenticate_user!, only: [:hide]
    
    def hide
      ids = [params[:id], *cookies.signed[:hidden_announcement_ids]]
      cookies.permanent.signed[:hidden_announcement_ids] = ids
      redirect_to :back
    end    
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hatchy-0.0.8.pre app/controllers/hatchy/announcements_controller.rb
hatchy-0.0.7.pre app/controllers/hatchy/announcements_controller.rb
hatchy-0.0.6.pre app/controllers/hatchy/announcements_controller.rb
hatchy-0.0.5.pre app/controllers/hatchy/announcements_controller.rb