Fix undefined method
This commit is contained in:
parent
c2989b216f
commit
94d0a42ac1
@ -2,7 +2,13 @@
|
||||
|
||||
module Guests
|
||||
class UpdateUseCase
|
||||
private attr_reader :guest_ids, :params
|
||||
def initialize(guest_ids:, params:)
|
||||
@guest_ids = guest_ids
|
||||
@params = params
|
||||
end
|
||||
|
||||
def call
|
||||
Guest.where(id: guest_ids).update!(params)
|
||||
|
||||
# TODO: Not all status transitions may require a table re-arrangement
|
||||
|
Loading…
x
Reference in New Issue
Block a user