Module: Waves::Layers::SimpleErrors

Defined in:
lib/layers/simple_errors.rb

Class Method Summary collapse

Class Method Details

.included(app) ⇒ Object



5
6
7
8
9
10
11
12
13
14
# File 'lib/layers/simple_errors.rb', line 5

def self.included( app )

  app.instance_eval do

    autoinit 'Configurations::Mapping' do
      handle(Waves::Dispatchers::NotFoundError) { response.status = 404 }
    end

  end
end