Sha256: be0ca6dff33a162a28acb01d5f5676dfe7ac5106327e331ed07d6baad3fb3236

Contents?: true

Size: 450 Bytes

Versions: 1

Compression:

Stored size: 450 Bytes

Contents

module Renalware
  class ErrorsController < ApplicationController
    layout "renalware/layouts/error"

    def not_found
      render status: 404, formats: [:html]
    end

    def internal_server_error
      render status: 500, formats: [:html]
    end

    def generate_test_internal_server_error
      raise "This is an intentionally raised error - please ignore it. " \
            "It is used only to test system integration"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta4 app/controllers/renalware/errors_controller.rb