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) 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