Sha256: 60f0d0e4c2484a958dd6425d74e923c1c4355c8df65d5261aef0833093d24738

Contents?: true

Size: 553 Bytes

Versions: 2

Compression:

Stored size: 553 Bytes

Contents

module SpeedupRails
  class ResultsController < SpeedupRails::ApplicationController

    def show
      @request_id = params[:id]
      @request = Speedup::Request.get(@request_id)
      if @request
        @collectors = Speedup.collectors
        @redirect = params[:redirect]
        render layout: false
      else
        render nothing: true, status: :not_found
      end
    end

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

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
speedup-rails-0.0.12 app/controllers/speedup_rails/results_controller.rb
speedup-rails-0.0.10 app/controllers/speedup_rails/results_controller.rb