Я пытаюсь интегрировать oAuth2.0 В мое приложение rails-api, используя привратник. Но я продолжаю получать эту ошибку, «undefined method` helper_method »для ApplicationController» и все же не смог найти четкое решение о том, как ее решить. Ниже приведен класс application_controller.rb, у которого есть helper_method. Я следую руководству по приведенной ниже ссылке. Любая помощь будет оценена по достоинству.undefined method `helper_method 'для ApplicationController, Rails 5
https://www.sitepoint.com/getting-started-with-doorkeeper-and-oauth-2-0/
class ApplicationController < ActionController::API
private
def current_user
@current_user ||= User.find(session[:user_id]) if session[:user_id]
end
helper_method :current_user
end