Sha256: e88461dc91237114584b246d7ec9a6703bb03fe0f335ab696f43d7ed3bca8670

Contents?: true

Size: 705 Bytes

Versions: 4

Compression:

Stored size: 705 Bytes

Contents

RailsPerformance::Engine.routes.draw do
  get '/'          => 'rails_performance#index', as: :rails_performance

  get '/requests'  => 'rails_performance#requests', as: :rails_performance_requests
  get '/crashes'   => 'rails_performance#crashes', as: :rails_performance_crashes
  get '/recent'    => 'rails_performance#recent', as: :rails_performance_recent

  get '/summary'    => 'rails_performance#summary', as: :rails_performance_summary
end

Rails.application.routes.draw do
  begin
    mount RailsPerformance::Engine => '/rails/performance', as: 'rails_performance'
  rescue ArgumentError
      # already added
      # this cod exist here because engine not includes routing automatically
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_performance-0.0.1.15 config/routes.rb
rails_performance-0.0.1.14 config/routes.rb
rails_performance-0.0.1.13 config/routes.rb
rails_performance-0.0.1.12 config/routes.rb