{"action":"created","issue":{"url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/761","labels_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/761/labels{/name}","comments_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/761/comments","events_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/761/events","html_url":"https://github.com/doorkeeper-gem/doorkeeper/issues/761","id":120779348,"number":761,"title":"uninitialized constant Grape::API::Helpers ","user":{"login":"ved54321","id":7689116,"avatar_url":"https://avatars.githubusercontent.com/u/7689116?v=3","gravatar_id":"","url":"https://api.github.com/users/ved54321","html_url":"https://github.com/ved54321","followers_url":"https://api.github.com/users/ved54321/followers","following_url":"https://api.github.com/users/ved54321/following{/other_user}","gists_url":"https://api.github.com/users/ved54321/gists{/gist_id}","starred_url":"https://api.github.com/users/ved54321/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ved54321/subscriptions","organizations_url":"https://api.github.com/users/ved54321/orgs","repos_url":"https://api.github.com/users/ved54321/repos","events_url":"https://api.github.com/users/ved54321/events{/privacy}","received_events_url":"https://api.github.com/users/ved54321/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-07T13:58:49Z","updated_at":"2015-12-08T03:59:58Z","closed_at":null,"body":"I have used following gem in my rails 4 application,\r\n\r\n```\r\ndoorkeeper (3.0.1)\r\ngrape (0.2.6)\r\n```\r\n\r\nI want to include doorkeeper authentication in my grape api,\r\n\r\nfollowing is my code which i did,\r\n\r\n```ruby\r\nrequire 'json_builder'\r\nrequire 'doorkeeper/grape/helpers'\r\n module API\r\n  module Fidelity\r\n    class Fidelity < Grape::API\r\n    helpers Doorkeeper::Grape::Helpers\r\n       prefix  'api'\r\n       default_format :json\r\n       version 'fidelity'\r\n       format :json\r\n            before do\r\n              doorkeeper_authorize!\r\n           end\r\n      end\r\n```\r\n\r\nI am getting `uninitialized constant Grape::API::Helpers` error with following log,\r\n\r\n```\r\nusr/local/rvm/gems/ruby-2.2.2@nusdigital/gems/doorkeeper-3.0.1/lib/doorkeeper/grape/helpers.rb:6:in `<module:Helpers>': uninitialized constant Grape::API::Helpers (NameError)\r\n        from /usr/local/rvm/gems/ruby-2.2.2@nusdigital/gems/doorkeeper-3.0.1/lib/doorkeeper/grape/helpers.rb:5:in `<module:Grape>'\r\n        from /usr/local/rvm/gems/ruby-2.2.2@nusdigital/gems/doorkeeper-3.0.1/lib/doorkeeper/grape/helpers.rb:4:in `<module:Doorkeeper>'\r\n        from /usr/local/rvm/gems/ruby-2.2.2@nusdigital/gems/doorkeeper-3.0.1/lib/doorkeeper/grape/helpers.rb:3:in `<top (required)>'\r\n```\r\n\r\nPlease help me on this."},"comment":{"url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/comments/162752404","html_url":"https://github.com/doorkeeper-gem/doorkeeper/issues/761#issuecomment-162752404","issue_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/761","id":162752404,"user":{"login":"tute","id":54260,"avatar_url":"https://avatars.githubusercontent.com/u/54260?v=3","gravatar_id":"","url":"https://api.github.com/users/tute","html_url":"https://github.com/tute","followers_url":"https://api.github.com/users/tute/followers","following_url":"https://api.github.com/users/tute/following{/other_user}","gists_url":"https://api.github.com/users/tute/gists{/gist_id}","starred_url":"https://api.github.com/users/tute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tute/subscriptions","organizations_url":"https://api.github.com/users/tute/orgs","repos_url":"https://api.github.com/users/tute/repos","events_url":"https://api.github.com/users/tute/events{/privacy}","received_events_url":"https://api.github.com/users/tute/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T03:59:58Z","updated_at":"2015-12-08T03:59:58Z","body":"Thank you! @ved54321, it sounds like you'd need to upgrade Grape. When we find out what version is required, I'd like to get the documentation updated. Please let me know!"}}