Skip to content

Commit

Permalink
use super again
Browse files Browse the repository at this point in the history
  • Loading branch information
mokus80 committed Jan 4, 2024
1 parent 1e01be9 commit 64915c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/delayed/performable_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module Delayed
class PerformableMailer < PerformableMethod
def perform
mailer = object.send(method_name, *args, **kwargs)
mailer = super
mailer.respond_to?(:deliver_now) ? mailer.deliver_now : mailer.deliver
end
end
Expand Down
4 changes: 2 additions & 2 deletions lib/delayed/performable_method.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ def method(sym)
end

# rubocop:disable MethodMissing
def method_missing(symbol, *args)
object.send(symbol, *args)
def method_missing(symbol, *args, **kwargs)
object.send(symbol, *args, **kwargs)
end
# rubocop:enable MethodMissing

Expand Down

0 comments on commit 64915c6

Please sign in to comment.