Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
puglet5 committed Jul 7, 2022
1 parent 234d27f commit 32d8315
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions config/initializers/mini-profiler.rb
Expand Up @@ -2,3 +2,15 @@

require 'rack-mini-profiler'
Rack::MiniProfiler.config.position = 'bottom-left'

module RackTurboExtension
def get_profile_script(*args, **kargs)
super(*args, **kargs).gsub('></script>', ' data-turbo-permanent="true"></script>')
end
end

module Rack
class MiniProfiler
prepend RackTurboExtension
end
end

0 comments on commit 32d8315

Please sign in to comment.