Class: Tuttle::RackMiniProfilerController

Inherits:
ApplicationController show all
Defined in:
app/controllers/tuttle/rack_mini_profiler_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



7
8
9
10
11
12
13
# File 'app/controllers/tuttle/rack_mini_profiler_controller.rb', line 7

def index
  return redirect_to gems_other_path unless defined?(::Rack::MiniProfiler::Config)

  require_dependency 'tuttle/presenters/rack_mini_profiler/client_settings'
  @mp_config = ::Rack::MiniProfiler.config
  @mp_client_settings = Tuttle::Presenters::RackMiniProfiler::ClientSettings.new(request.env)
end