Class: Wallaby::SecureController

Inherits:
ApplicationController show all
Defined in:
app/controllers/wallaby/secure_controller.rb

Overview

This controller only contains authentication logics

Direct Known Subclasses

BaseController

Constant Summary

Constants inherited from ApplicationController

ApplicationController::ERROR_PATH

Instance Method Summary collapse

Methods inherited from ApplicationController

#bad_request, #not_found, #unprocessable_entity

Instance Method Details

#forbidden(exception = nil) ⇒ Object

Forbidden page



16
17
18
# File 'app/controllers/wallaby/secure_controller.rb', line 16

def forbidden(exception = nil)
  error_rendering(exception, __callee__)
end

#unauthorized(exception = nil) ⇒ Object

Unauthorized page



11
12
13
# File 'app/controllers/wallaby/secure_controller.rb', line 11

def unauthorized(exception = nil)
  error_rendering(exception, __callee__)
end