Class: ActionTextSyntaxHighlighter::PurgeDeletedHighlightedCodeBlocksJob

Inherits:
ApplicationJob
  • Object
show all
Defined in:
app/jobs/action_text_syntax_highlighter/purge_deleted_highlighted_code_blocks_job.rb

Instance Method Summary collapse

Instance Method Details

#performObject



5
6
7
8
9
# File 'app/jobs/action_text_syntax_highlighter/purge_deleted_highlighted_code_blocks_job.rb', line 5

def perform
  HighlightedCodeBlock.deleted.find_each do |code_block|
    code_block.destroy
  end
end