diff options
author | Abdelkader Boudih <terminale@gmail.com> | 2014-08-15 10:11:58 +0000 |
---|---|---|
committer | Abdelkader Boudih <terminale@gmail.com> | 2014-08-17 23:10:33 +0000 |
commit | b06d91924ffeb07c5ca6a3d96eff288267ee80c6 (patch) | |
tree | 13414ae7353aad3749f5280c47d36f20420b854f /activejob/lib/active_job | |
parent | 3954fdf5f325719143df12860f65d778350d12ed (diff) | |
download | rails-b06d91924ffeb07c5ca6a3d96eff288267ee80c6.tar.gz rails-b06d91924ffeb07c5ca6a3d96eff288267ee80c6.tar.bz2 rails-b06d91924ffeb07c5ca6a3d96eff288267ee80c6.zip |
[ActiveJob] remove ruby warnings
Diffstat (limited to 'activejob/lib/active_job')
-rw-r--r-- | activejob/lib/active_job/enqueuing.rb | 2 | ||||
-rw-r--r-- | activejob/lib/active_job/execution.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/activejob/lib/active_job/enqueuing.rb b/activejob/lib/active_job/enqueuing.rb index e3ac11ba97..c00aab40da 100644 --- a/activejob/lib/active_job/enqueuing.rb +++ b/activejob/lib/active_job/enqueuing.rb @@ -57,7 +57,7 @@ module ActiveJob end def retry_now - self.class.enqueue *arguments + self.class.enqueue(*arguments) end def retry_in(interval) diff --git a/activejob/lib/active_job/execution.rb b/activejob/lib/active_job/execution.rb index 78ada3d908..181d049616 100644 --- a/activejob/lib/active_job/execution.rb +++ b/activejob/lib/active_job/execution.rb @@ -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 |