Sha256: dd467c10ca81471a40cf17e7bf1aa60901385780460f1f96df4a3f46deb618da
Contents?: true
Size: 519 Bytes
Versions: 16
Compression:
Stored size: 519 Bytes
Contents
# frozen_string_literal: true if Rails.env == 'development' && ENV.fetch('DISABLE_PROFILER', 0).to_i.zero? require 'rack-mini-profiler' # Fix circular ref conflict with Oj.mimic_json module Rack class MiniProfiler module TimerStruct class Base def as_json @attributes end end end end end # initialization is skipped so trigger it Rack::MiniProfiler.config.position = 'right' Rack::MiniProfilerRails.initialize!(Rails.application) end
Version data entries
16 entries across 16 versions & 1 rubygems