Created
February 1, 2021 15:56
-
-
Save biow0lf/ab83bafbc516c10c331c77bdef1f8e87 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on_worker_boot do | |
ActiveRecord::Base.establish_connection if defined?(ActiveRecord) | |
client = ::Rack::MockRequest.new Rails.application | |
%w[/].each do |url| | |
client.get url | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment