Skip to content

Commit

Permalink
add kwargs method again
Browse files Browse the repository at this point in the history
  • Loading branch information
mokus80 committed Jan 4, 2024
1 parent 64915c6 commit f310832
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/delayed/performable_method.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ def display_name
end
end

def kwargs
# Default to a hash so that we can handle deserializing jobs that were
# created before kwargs was available.
@kwargs || {}
end

def perform
object.send(method_name, *args, **kwargs) if object
end
Expand Down

0 comments on commit f310832

Please sign in to comment.