Skip to content

Commit

Permalink
Pass all kwargs through PagingSchedule.for
Browse files Browse the repository at this point in the history
(including `time`)
  • Loading branch information
cbeer authored Jan 9, 2025
1 parent 32ea789 commit 7e14d74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/paging_schedule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ def schedule
end
end

def for(from:, to:, scan: false, library_code: nil)
instance = new(from:, to:, library_code:)
def for(scan: false, **kwargs)
instance = new(**kwargs)

if scan
instance.schedule_for_request_scan
Expand Down

0 comments on commit 7e14d74

Please sign in to comment.