Class: Tokite::ShaController
- Inherits:
-
ActionController::API
- Object
- ActionController::API
- Tokite::ShaController
- Defined in:
- app/controllers/tokite/sha_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'app/controllers/tokite/sha_controller.rb', line 6 def show revision = Revision.take if revision status = 200 else revision = "REVISION_FILE_NOT_FOUND" status = 404 end render plain: "#{revision}\n", status: status end |