36ee253a1a
We had client-side notification stacking in the tray since launch, but now we want to stack notifications in the notifications page, in API responses and in email bundles.
19 lines
327 B
Ruby
19 lines
327 B
Ruby
class Cards::ReadingsController < ApplicationController
|
|
include CardScoped
|
|
|
|
def create
|
|
@card.read_by(Current.user)
|
|
record_board_access
|
|
end
|
|
|
|
def destroy
|
|
@card.unread_by(Current.user)
|
|
record_board_access
|
|
end
|
|
|
|
private
|
|
def record_board_access
|
|
@card.board.accessed_by(Current.user)
|
|
end
|
|
end
|