Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/glacials/splits-io. a speedrunning data store and analysis engine splits.io
Something went wrong. Try again.
splits-io perf.rake
400 B · 20 lines
123456789101112131415161718192021require 'bundler'Bundler.setup
require 'derailed_benchmarks'require 'derailed_benchmarks/tasks'
class AuthieAuth < DerailedBenchmarks::AuthHelper def setup require 'authie/rack_controller' @user = User.first end
def call(env) controller = Authie::RackController.new(env) controller.current_user = @user app.call(env) endend
DerailedBenchmarks.auth = AuthieAuth.new