Module: Doorkeeper::Rails::Helpers::ClassMethods

Defined in:
lib/doorkeeper/rails/helpers.rb

Instance Method Summary collapse

Instance Method Details

#doorkeeper_for(*args, &block) ⇒ Object


7
8
9
10
11
12
13
14
15
16
17
# File 'lib/doorkeeper/rails/helpers.rb', line 7

def doorkeeper_for(*args, &block)
  fail Errors::DoorkeeperError, "`doorkeeper_for` no longer available", <<-eos
\nStarting in version 2.0.0 of doorkeeper gem, `doorkeeper_for` is no longer
available. Please change `doorkeeper_for` calls in your application with:

  before_action :doorkeeper_authorize!

For more information check the README:
https://github.com/doorkeeper-gem/doorkeeper#protecting-resources-with-oauth-aka-your-api-endpoint\n
  eos
end