Class: Acme::Authorizer::TokensController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Acme::Authorizer::TokensController
- Defined in:
- app/controllers/acme/authorizer/tokens_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'app/controllers/acme/authorizer/tokens_controller.rb', line 4 def show token = params[:token] if .valid_token?(token) render plain: .(token) else head :not_found end end |