Files
fizzy/app/controllers/cards/readings_controller.rb
T
David Heinemeier Hansson a5de4863fa Allow for multiple notifications to be read
cc @kevinmcconnell
2025-04-17 11:39:37 +02:00

9 lines
200 B
Ruby

class Cards::ReadingsController < ApplicationController
include CardScoped
def create
@notifications = Current.user.notifications.where(card: @card)
@notifications.each(&:read)
end
end