aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activejob/lib/active_job/execution.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/activejob/lib/active_job/execution.rb b/activejob/lib/active_job/execution.rb
index 181d049616..0e7b5bdd72 100644
--- a/activejob/lib/active_job/execution.rb
+++ b/activejob/lib/active_job/execution.rb
@@ -11,7 +11,7 @@ module ActiveJob
def execute(job_id, *serialized_args)
self.job_id = job_id
- self.arguments = Arguments.deserialize(serialized_args)
+ self.arguments = deserialize_arguments(serialized_args)
run_callbacks :perform do
perform(*arguments)
@@ -23,5 +23,11 @@ module ActiveJob
def perform(*)
fail NotImplementedError
end
+
+ private
+ def deserialize_arguments(serialized_args)
+ Arguments.deserialize(serialized_args)
+ end
+
end
end