demarches-normaliennes/app/jobs/application_job.rb

10 lines
237 B
Ruby
Raw Normal View History

2016-12-22 21:49:31 +01:00
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
2016-12-22 21:49:31 +01:00
end