- Include 'rack-mini-profiler' gem in Gemfile - Update Gemfile.lock with the new dependency - Create initializer for rack-mini-profiler in development This addition allows for performance monitoring within the application during development, which can help identify and address performance issues more effectively.
9 lines
218 B
Ruby
9 lines
218 B
Ruby
# frozen_string_literal: true
|
|
|
|
if Rails.env.development?
|
|
require "rack-mini-profiler"
|
|
|
|
# The initializer was required late, so initialize it manually.
|
|
# Rack::MiniProfilerRails.initialize!(Rails.application)
|
|
end
|