Sha256: 7f2d18d6641277a06ce1e7d740784412dceeaf7dd6ee3f9de23039b937581565

Contents?: true

Size: 180 Bytes

Versions: 4

Compression:

Stored size: 180 Bytes

Contents

class 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

4 entries across 4 versions & 1 rubygems

Version Path
blueberry_rails-1.0.0 templates/controllers/errors_controller.rb
blueberry_rails-0.4.1 templates/controllers/errors_controller.rb
blueberry_rails-0.4.0 templates/controllers/errors_controller.rb
blueberry_rails-0.3.10 templates/controllers/errors_controller.rb