Module: DelayedWorkerPatches
- Included in:
- Delayed::Worker
- Defined in:
- lib/voyage/templates/config_dj_rails5_patches.rb
Overview
RAILS 5 patches for delayed_job TODO: REMOVE WHEN upstream is updated
Instance Method Summary collapse
Instance Method Details
#reload! ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/voyage/templates/config_dj_rails5_patches.rb', line 5 def reload! return unless self.class.reload_app? if defined?(ActiveSupport::Reloader) Rails.application.reloader.reload! else ActionDispatch::Reloader.cleanup! ActionDispatch::Reloader.prepare! end end |