Fix undefined method #91

Merged
bustikiller merged 1 commits from fix/undefined-method into main 2024-11-03 13:00:12 +00:00

View File

@ -2,7 +2,13 @@
module Guests module Guests
class UpdateUseCase class UpdateUseCase
private attr_reader :guest_ids, :params
def initialize(guest_ids:, params:) def initialize(guest_ids:, params:)
@guest_ids = guest_ids
@params = params
end
def call
Guest.where(id: guest_ids).update!(params) Guest.where(id: guest_ids).update!(params)
# TODO: Not all status transitions may require a table re-arrangement # TODO: Not all status transitions may require a table re-arrangement