Sha256: 8316c54cf7e15bf9c6dd7de809087b29aad1c251f4833c116c00caab1c832f1b

Contents?: true

Size: 441 Bytes

Versions: 5

Compression:

Stored size: 441 Bytes

Contents

module SpeedupRails
  class ResultsController < SpeedupRails::ApplicationController

    def show
      @request_id = params[:id]
      @request = Speedup::Request.get(@request_id)
      @collectors = Speedup.collectors
      @redirect = params[:redirect]
      render layout: false
    end

    def rubyprof
      send_file Rails.root.join('tmp', 'rubyprof', params[:id] ), :type => 'text/html', :disposition => 'inline'
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
speedup-rails-0.0.9 app/controllers/speedup_rails/results_controller.rb
speedup-rails-0.0.7 app/controllers/speedup_rails/results_controller.rb
speedup-rails-0.0.6 app/controllers/speedup_rails/results_controller.rb
speedup-rails-0.0.3 app/controllers/speedup_rails/results_controller.rb
speedup-rails-0.0.2 app/controllers/speedup_rails/results_controller.rb