Class: Tuttle::RackMiniProfilerController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Tuttle::RackMiniProfilerController
- Defined in:
- app/controllers/tuttle/rack_mini_profiler_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
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 |