today_ai_weather/config/initializers/rack_mini_profiler.rb
songtianlun ec8f89e07a feat: add rack-mini-profiler for performance monitoring
- 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.
2025-02-14 10:47:16 +08:00

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