# 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