RubyMine显示警告'找不到'before_action"'

ksh*_*ksh 9 rubymine rubymine-7

RubyMine7.0.1在每个控制器类中显示此警报.
下面的控制器类文件.谢谢.

application_controller.rb

class ApplicationController < ActionController::Base
  protect_from_forgery with: :exception
  helper_method :current_user, :logged_in?
  before_action :authenticate

  private
  def current_user
    return unless sessions[:user_id]
    @current_user ||= User.find(session[:user_id])
  end

  def logged_in?
    !!session[:user_id]
  end

  def authenticate
    return if logged_in?
    redirect_to root_path, alert: '??????????'
  end
end
Run Code Online (Sandbox Code Playgroud)

ytg*_*ytg 0

当我从现有源导入项目并且项目 SDK 没有为该项目正确设置时,我遇到了同样的错误。