Sha256: 9b11d93e24c6cecddc4a99b19ddcf59caf33342a4fc36bac5eabbdbea358f304
Contents?: true
Size: 578 Bytes
Versions: 2
Compression:
Stored size: 578 Bytes
Contents
class Wallaby::ApplicationController < ::Wallaby.configuration.base_controller helper Wallaby::ApplicationHelper rescue_from \ Wallaby::ResourceNotFound, Wallaby::ModelNotFound, with: :not_found rescue_from ActionController::ParameterMissing, with: :unprocessable_entity layout 'wallaby/application' def not_found(exception = nil) @exception = exception render 'wallaby/errors/not_found', status: 404 end def unprocessable_entity(exception) @exception = exception render 'wallaby/errors/unprocessable_entity', status: 422 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wallaby-4.1.6 | app/controllers/wallaby/application_controller.rb |
wallaby-5.0.1 | app/controllers/wallaby/application_controller.rb |