Files
fizzy/app/controllers/cards/readings_controller.rb
T
2026-02-17 13:57:24 +01:00

19 lines
359 B
Ruby

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