葡萄 - 表作为常数读

时间:2017-04-25 09:13:52

标签: ruby-on-rails ruby-on-rails-3 grape grape-api

我正在使用rails 5和grape for api,我正在尝试为表格应用程序创建葡萄终点。

module PROJ::API::V2
  class Applications < ::Grape::API
      get '/' do
        authorize! :read, Application
        status 200
        present Application.list(filter_params, current_user), with: Entities::ApplicationList, only_show: params[:only], person_base: true, current_ability: current_ability, user: current_user, nps_details: params[:nps_details]
      end
  end
end

我正在获得未初始化的常量PROJ :: API :: V2 :: Applications :: Application。我尝试更改类名和文件名仍然发生相同的错误。

0 个答案:

没有答案