mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
[ActiveJob] remove ruby warnings
This commit is contained in:
parent
3954fdf5f3
commit
b06d91924f
2 changed files with 3 additions and 3 deletions
|
@ -57,7 +57,7 @@ module ActiveJob
|
|||
end
|
||||
|
||||
def retry_now
|
||||
self.class.enqueue *arguments
|
||||
self.class.enqueue(*arguments)
|
||||
end
|
||||
|
||||
def retry_in(interval)
|
||||
|
|
|
@ -14,14 +14,14 @@ module ActiveJob
|
|||
self.arguments = Arguments.deserialize(serialized_args)
|
||||
|
||||
run_callbacks :perform do
|
||||
perform *arguments
|
||||
perform(*arguments)
|
||||
end
|
||||
rescue => exception
|
||||
rescue_with_handler(exception) || raise(exception)
|
||||
end
|
||||
|
||||
def perform(*)
|
||||
raise NotImplementedError
|
||||
fail NotImplementedError
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue