demarches-normaliennes/app/jobs/application_job.rb
2017-10-05 15:42:48 +02:00

9 lines
237 B
Ruby

class ApplicationJob < ActiveJob::Base
before_perform do |job|
Rails.logger.info("#{job.class.name} started at #{Time.now}")
end
after_perform do |job|
Rails.logger.info("#{job.class.name} ended at #{Time.now}")
end
end