Files
fizzy/app/controllers/cards/readings_controller.rb
T
Jorge Manrubia eea9afb639 Fix: dismiss grouped notifications by card from the notifications tray
This also splits the templates into two: index and tray, since the URL now changes.
2025-11-14 12:58:24 +01:00

21 lines
385 B
Ruby

class Cards::ReadingsController < ApplicationController
include CardScoped
skip_writer_affinity
def create
@notifications = @card.read_by(Current.user)
record_board_access
end
def destroy
@notifications = @card.unread_by(Current.user)
record_board_access
end
private
def record_board_access
@card.board.accessed_by(Current.user)
end
end