Class: UnauthorizedController
- Inherits:
-
ActionController::Metal
- Object
- ActionController::Metal
- UnauthorizedController
- Defined in:
- app/controllers/unauthorized_controller.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.call(env) ⇒ Object
2 3 4 5 |
# File 'app/controllers/unauthorized_controller.rb', line 2 def self.call(env) @respond ||= action(:respond) @respond.call(env) end |
Instance Method Details
#respond ⇒ Object
7 8 9 10 |
# File 'app/controllers/unauthorized_controller.rb', line 7 def respond self.response_body = "Unauthorized Action" self.status = :unauthorized end |