Class: Wallaby::ApplicationController
- Inherits:
-
Object
- Object
- Wallaby::ApplicationController
- Defined in:
- app/controllers/wallaby/application_controller.rb
Overview
Wallaby’s application controller It defaults to inherit from ::ApplicationController, which can be configured via ‘Wallaby.configuration.base_controller` It only contains the error handling logics
Direct Known Subclasses
Constant Summary collapse
- ERROR_PATH =
ERROR_LAYOUT = 'wallaby/error'.freeze
Instance Method Summary collapse
-
#bad_request(exception = nil) ⇒ Object
Bad request page.
-
#not_found(exception = nil) ⇒ Object
Not found page.
-
#unprocessable_entity(exception = nil) ⇒ Object
Unprocessable entity page.
Instance Method Details
#bad_request(exception = nil) ⇒ Object
Bad request page
26 27 28 |
# File 'app/controllers/wallaby/application_controller.rb', line 26 def bad_request(exception = nil) error_rendering(exception, __callee__) end |
#not_found(exception = nil) ⇒ Object
Not found page
21 22 23 |
# File 'app/controllers/wallaby/application_controller.rb', line 21 def not_found(exception = nil) error_rendering(exception, __callee__) end |
#unprocessable_entity(exception = nil) ⇒ Object
Unprocessable entity page
31 32 33 |
# File 'app/controllers/wallaby/application_controller.rb', line 31 def unprocessable_entity(exception = nil) error_rendering(exception, __callee__) end |