Sha256: 30c67a6a1b16df30f127cf1946394d33acedc43c50d6592d371619fe19a66c69

Contents?: true

Size: 214 Bytes

Versions: 2

Compression:

Stored size: 214 Bytes

Contents

class ErrorsController < ApplicationController
  def error
    # let's cause a server error by doing something stupid here
    0 / 0
  end

  def error_507
    render json: {error_code: 507}, status: 507
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cp-sparrow-0.0.16 spec/integration/apps/rails_app/app/controllers/errors_controller.rb
cp-sparrow-0.0.15 spec/integration/apps/rails_app/app/controllers/errors_controller.rb