Skip to content

Commit

Permalink
Merge 9b58bc6 into 8c20bbb
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoviola authored Aug 11, 2020
2 parents 8c20bbb + 9b58bc6 commit fa61fc0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ gem 'iso-639'
gem 'flamegraph'
gem 'memory_profiler'
gem 'meta_request'
gem 'rack-mini-profiler'
gem 'rack-mini-profiler', require: false
gem 'stackprof'

gem 'intercom', '~> 3.9.0'
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ GEM
rack (2.2.3)
rack-contrib (2.2.0)
rack (~> 2.0)
rack-mini-profiler (2.0.2)
rack-mini-profiler (2.0.4)
rack (>= 1.2.0)
rack-proxy (0.6.5)
rack
Expand Down
2 changes: 0 additions & 2 deletions config/initializers/rack-mini-profiler.rb

This file was deleted.

8 changes: 8 additions & 0 deletions config/initializers/rack_profiler.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# frozen_string_literal: true

if Rails.env.development?
require "rack-mini-profiler"

# initialization is skipped so trigger it
Rack::MiniProfilerRails.initialize!(Rails.application)
end

0 comments on commit fa61fc0

Please sign in to comment.