We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b97214 commit 835d828Copy full SHA for 835d828
app/jobs/delete_action_job.rb
@@ -30,10 +30,10 @@ def perform
30
end
31
32
# Ignore errors if the target resource has already been deleted (e.g., by a parallel job)
33
- quoted_table_name = @model_class.db.quote_identifier(@model_class.table_name)
+ quoted_table_name = model_class.db.quote_identifier(model_class.table_name)
34
errors.reject! { |err| err.is_a?(Sequel::NoExistingObject) && err.message.include?("DELETE FROM #{quoted_table_name}") } unless errors.frozen?
35
36
- raise errors.first unless errors&.empty?
+ raise errors.first unless errors.empty?
37
38
warnings
39
0 commit comments