mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Update reload API for 5.0.beta4
This commit is contained in:
parent
eca6424e98
commit
df002c1576
2 changed files with 3 additions and 14 deletions
|
@ -41,21 +41,10 @@ module Sidekiq
|
|||
end
|
||||
|
||||
def call
|
||||
ActiveSupport::Dependencies.interlock.running do
|
||||
begin
|
||||
ActionDispatch::Reloader.prepare! if do_reload_now = reload_dependencies?
|
||||
yield
|
||||
ensure
|
||||
ActionDispatch::Reloader.cleanup! if do_reload_now
|
||||
end
|
||||
@app.reloader.wrap do
|
||||
yield
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def reload_dependencies?
|
||||
@app.config.reload_classes_only_on_change != true || @app.reloaders.any?(&:updated?)
|
||||
end
|
||||
end
|
||||
end if defined?(::Rails)
|
||||
end
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
source 'https://rubygems.org'
|
||||
|
||||
gem 'sidekiq', :path => '..'
|
||||
gem 'rails', '5.0.0.beta2'
|
||||
gem 'rails', '5.0.0.beta4'
|
||||
gem 'rack', '2.0.0.alpha'
|
||||
gem 'sinatra', github: 'sinatra/sinatra'
|
||||
|
||||
|
|
Loading…
Reference in a new issue