From a024fa21d84624ffbcc565ef8a1cf5d3179a185e Mon Sep 17 00:00:00 2001 From: greenfieldtech-davidb Date: Sun, 25 Dec 2016 13:04:00 +0200 Subject: [PATCH 1/2] API.logger is confusing statement It is confusing because it may look like `API` means `Grape::API` --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b3ae70ebc3..3186655e2a 100644 --- a/README.md +++ b/README.md @@ -2171,10 +2171,10 @@ To log messages from within an endpoint, you need to define a helper to make the available in the endpoint context. ```ruby -class API < Grape::API +class MyAPI < Grape::API helpers do def logger - API.logger + MyAPI.logger end end post '/statuses' do From a13161e95fe130d2e97d1c793641b545710f90f6 Mon Sep 17 00:00:00 2001 From: greenfieldtech-davidb Date: Sun, 25 Dec 2016 13:16:21 +0200 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e54e57e28..e80da9444a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ #### 0.19.1 (Next) * [#1536](https://github.com/ruby-grape/grape/pull/1536): Updates `invalid_versioner_option` translation - [@Lavode](https://github.com/Lavode). +* [#1540](https://github.com/ruby-grape/grape/pull/1540): Api.logger is confusing statement - [@greenfieldtech-davidb](https://github.com/greenfieldtech-davidb). * Your contribution here. ### 0.19.0 (12/18/2016)