You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to utilise this library with Rails (7.0.7), Grape (1.7.1), and Ruby (3.2.2). but I'm running into issues when the formatter is attempting to resolve the resource class for the first time. Below is the stack trace. Is there something missing in my setup or is this library no longer supported in these versions of Rails/Ruby?
# app/api/public/v1/topics.rb
module Public
module V1
class Topics < ::Grape::API
include Public::V1::Defaults
resource :topics do
desc 'List of available topics which a helpline may support.'
get do
render Topics.All
end
end
add_swagger_documentation
end
end
end
# app/resources/topic_resource.rb
class TopicResource < JSONAPI::Resource
attributes :name
end
# config/routes.rb
Rails.application.routes.draw do
...
mount Public::API => '/'
mount GrapeSwaggerRails::Engine => '/swagger'
jsonapi_resources :topics
end
The text was updated successfully, but these errors were encountered:
shaunrfield
changed the title
ThreadSafe
Creating formatter resource cache fails due to 'Uninitialized constant... ::ThreadSafe'
Aug 23, 2023
I'm attempting to utilise this library with Rails (7.0.7), Grape (1.7.1), and Ruby (3.2.2). but I'm running into issues when the formatter is attempting to resolve the resource class for the first time. Below is the stack trace. Is there something missing in my setup or is this library no longer supported in these versions of Rails/Ruby?
The basic code setup is as follows:
The text was updated successfully, but these errors were encountered: