Sha256: fcf7dbb0d0963a769cbb0c25bf05d12986074561e3540623daa50b32dae61bc0
Contents?: true
Size: 593 Bytes
Versions: 1
Compression:
Stored size: 593 Bytes
Contents
module Sidekiq module Restart module WebExtension def self.registered(app) app.use Rack::MethodOverride app.helpers do def find_template(sidekiq_views, name, engine, &block) view_path = File.join(File.expand_path("../../../../web", __FILE__), "views") super(view_path, name, engine, &block) super(sidekiq_views, name, engine, &block) end end app.delete "/workers/:id" do |id| Restart.worker id redirect "#{root_path}workers", 301 end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sidekiq-restart-0.0.1 | lib/sidekiq/restart/web_extension.rb |