Sha256: dc3e283e719705647aa62001da92b6a79a32c1ac4048ad551f648820551712c0

Contents?: true

Size: 213 Bytes

Versions: 8

Compression:

Stored size: 213 Bytes

Contents

# frozen_string_literal: true
class C::ErrorsController < ApplicationController
  def show
    render status_code.to_s, status: status_code
  end

  protected

  def status_code
    params[:code] || 500
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cd2_catton_cms-1.1.35 app/controllers/c/errors_controller.rb
cd2_catton_cms-1.1.34 app/controllers/c/errors_controller.rb
cd2_catton_cms-1.1.33 app/controllers/c/errors_controller.rb
cd2_catton_cms-1.1.32 app/controllers/c/errors_controller.rb
cd2_catton_cms-1.1.31 app/controllers/c/errors_controller.rb
cd2_catton_cms-1.1.30 app/controllers/c/errors_controller.rb
cd2_catton_cms-1.1.20 app/controllers/c/errors_controller.rb
cd2_catton_cms-1.1.10 app/controllers/c/errors_controller.rb