lib/rails_mini_profiler/configuration.rb
def reset
      @enabled = proc { |_env| Rails.env.development? || Rails.env.test? }
      @flamegraph_enabled = true
      @flamegraph_sample_rate = 0.5
      @logger = RailsMiniProfiler::Logger.new(Rails.logger)
      @skip_paths = []
      @storage = Storage.new
      @ui = UserInterface.new
      @user_provider = proc { |env| Rack::Request.new(env).ip }
    end
# Reset the configuration to default values
Reset the configuration to default values
Reset the configuration to default values
def reset
      @enabled = proc { |_env| Rails.env.development? || Rails.env.test? }
      @flamegraph_enabled = true
      @flamegraph_sample_rate = 0.5
      @logger = RailsMiniProfiler::Logger.new(Rails.logger)
      @skip_paths = []
      @storage = Storage.new
      @ui = UserInterface.new
      @user_provider = proc { |env| Rack::Request.new(env).ip }
    end
def reset @enabled = proc { | _env | Rails . env . development? || Rails . env . test? } @flamegraph_enabled = true @flamegraph_sample_rate = 0.5 @logger = RailsMiniProfiler :: Logger . new ( Rails . logger ) @skip_paths = [ ] @storage = Storage . new @ui = UserInterface . new @user_provider = proc { | env | Rack :: Request . new ( env ) . ip } end
Reset the configuration to default values
Reset the configuration to default values