```ruby
require 'pundit'

module RailsInvitable
  class Engine < ::Rails::Engine
    isolate_namespace RailsInvitable
    config.generators.api_only = true
  end
end
```

Fix the json api require problem
user
```ruby
require 'pundit'
require 'jsonapi/rails'

module RailsInvitable
  class Engine < ::Rails::Engine
    isolate_namespace RailsInvitable
    config.generators.api_only = true
  end
end
```
assistant