diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-01-23 23:34:41 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-01-23 23:34:41 +0900 |
commit | e7d387c374e48a7273ba294fa41f10f7db93056a (patch) | |
tree | cde85d3b1c03010dcfb6c621b43175a7d63e2ad9 | |
parent | 841e9796cdeda4288675a3df7b2e984454698a49 (diff) | |
download | aclog-e7d387c374e48a7273ba294fa41f10f7db93056a.tar.gz |
web: fix error in apidocs
-rw-r--r-- | app/api/api.rb | 2 | ||||
-rw-r--r-- | app/controllers/apidocs_controller.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/api/api.rb b/app/api/api.rb index 8a6d3eb..49b33fa 100644 --- a/app/api/api.rb +++ b/app/api/api.rb @@ -61,7 +61,7 @@ class Api < Grape::API mount ApiTweets mount ApiUsers - route :any, "*path", ignore: true do + route :any, "*path", nodoc: true do raise Aclog::Exceptions::NotFound end end diff --git a/app/controllers/apidocs_controller.rb b/app/controllers/apidocs_controller.rb index 5b5bd33..8b8fab8 100644 --- a/app/controllers/apidocs_controller.rb +++ b/app/controllers/apidocs_controller.rb @@ -3,7 +3,7 @@ class ApidocsController < ApplicationController apidocs = Rails.cache.fetch("apidocs/all") do nss = {} Api.routes.each { |route| - next if route.route_ignore + next if route.route_nodoc next if route.route_method == "HEAD" namespace = route.route_namespace.sub(/^\//, "") nss[namespace] ||= [] |