module Doorkeeper::Rails::Helpers

def doorkeeper_authorize!(*scopes)

def doorkeeper_authorize!(*scopes)
  @_doorkeeper_scopes = scopes.presence || Doorkeeper.config.default_scopes
  doorkeeper_render_error unless valid_doorkeeper_token?
end