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
24 25 26 |
# File 'app/controllers/wallaby/application_controller.rb', line 24 def bad_request(exception = nil) error_rendering(exception, __callee__) end |
#not_found(exception = nil) ⇒ Object
Not found page
19 20 21 |
# File 'app/controllers/wallaby/application_controller.rb', line 19 def not_found(exception = nil) error_rendering(exception, __callee__) end |
#unprocessable_entity(exception = nil) ⇒ Object
Unprocessable entity page
29 30 31 |
# File 'app/controllers/wallaby/application_controller.rb', line 29 def unprocessable_entity(exception = nil) error_rendering(exception, __callee__) end |