Module: HttpErrorCats

Extended by:
ActionView::Helpers::AssetTagHelper, ActionView::Helpers::TagHelper
Defined in:
lib/http_error_cats/engine.rb,
lib/http_error_cats/version.rb,
app/controllers/http_error_cats/errors_controller.rb

Defined Under Namespace

Classes: Engine, ErrorsController

Constant Summary collapse

VERSION =
'0.0.1'.freeze

Class Method Summary collapse

Class Method Details

.codesObject



21
22
23
# File 'lib/http_error_cats/engine.rb', line 21

def self.codes
  @@codes || :all
end

.htmlObject



25
26
27
28
29
# File 'lib/http_error_cats/engine.rb', line 25

def self.html
  @@html || Proc.new do |status_code|
    image_tag "/assets/http_error_cats/#{status_code}.jpg", alt: "Status code #{status_code}"
  end
end

.layoutObject



17
18
19
# File 'lib/http_error_cats/engine.rb', line 17

def self.layout
  @@layout || false
end