Commit 7ecb849d by Your Name

candidate without inline

parent b34d246d
......@@ -45,7 +45,7 @@ APIPREFIX = CommentService::API_PREFIX
DEFAULT_PAGE = 1
DEFAULT_PER_PAGE = 20
if RACK_ENV.to_s != "development" # disable api_key auth in test environment
if RACK_ENV.to_s != "test" # disable api_key auth in test environment
before do
error 401 unless params[:api_key] == CommentService.config[:api_key]
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment