Class: Wallaby::ApplicationController

Inherits:
Object
  • Object
show all
Defined in:
app/controllers/wallaby/application_controller.rb

Direct Known Subclasses

SecureController

Instance Method Summary collapse

Instance Method Details

#not_found(exception = nil) ⇒ Object



12
13
14
15
# File 'app/controllers/wallaby/application_controller.rb', line 12

def not_found(exception = nil)
  @exception = exception
  render 'wallaby/errors/not_found', status: 404
end

#unprocessable_entity(exception) ⇒ Object



17
18
19
20
# File 'app/controllers/wallaby/application_controller.rb', line 17

def unprocessable_entity(exception)
  @exception = exception
  render 'wallaby/errors/unprocessable_entity', status: 422
end