Grape Table - Permanent

I am using rails 5 and grape for api, I am trying to create a grape endpoint for a table application.

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 

I get the uninitialized constant PROJ :: API :: V2 :: Applications :: Application. I tried to change the class name and the file name is still the same error.

+5
source share

Source: https://habr.com/ru/post/1267124/


All Articles