2022-12-01 11:22:20 +01:00
|
|
|
class Dossiers::BatchAlertComponent < ApplicationComponent
|
|
|
|
attr_reader :batch
|
|
|
|
|
|
|
|
def initialize(batch:, procedure:)
|
|
|
|
@batch = batch
|
|
|
|
@procedure = procedure
|
|
|
|
end
|
2022-12-02 12:42:26 +01:00
|
|
|
|
|
|
|
def set_seen_at!
|
|
|
|
@batch.seen_at = Time.zone.now
|
|
|
|
@batch.save
|
|
|
|
end
|
2022-12-01 11:22:20 +01:00
|
|
|
end
|