Skip to content

Commit

Permalink
Merge pull request #80 from eisuke/deprecated_delete_all_parameter
Browse files Browse the repository at this point in the history
Fix deprecated #delete_all conditions parameter
  • Loading branch information
eisuke authored Jul 24, 2017
2 parents 77cf582 + 95d89ef commit eb77755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/autoload/kuroko2/workflow/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def process_with_lock(token)
token.job_instance.logs.error("(token #{token.uuid}) #{message}")
token.job_instance.touch(:canceled_at)

Token.delete_all(job_definition: token.job_definition)
Token.where(job_definition: token.job_definition).delete_all
token.job_instance.logs.warn("(token #{token.uuid}) This job is canceled.")

Kuroko2.logger.error(message)
Expand Down

0 comments on commit eb77755

Please sign in to comment.