Sha256: 3a9a9e66526fed8e29c98ae58e6c91bc47d2b091649b5177a42a6a114d88a204
Contents?: true
Size: 374 Bytes
Versions: 21
Compression:
Stored size: 374 Bytes
Contents
# frozen_string_literal: true module NeetoCommonsBackend module Initializers class << self def mini_profiler if Rails.env.development? Rack::MiniProfiler.config.pre_authorize_cb = ->(_env) { ENV["MINI_PROFILER"].present? } Rack::MiniProfiler.config.auto_inject = ENV["MINI_PROFILER"].present? end end end end end
Version data entries
21 entries across 21 versions & 1 rubygems
Version | Path |
---|---|
neeto-commons-backend-1.0.89 | lib/neeto_commons_backend/initializers/mini_profiler.rb |