Files
growstuff/config/initializers/graphiti.rb
T
Brenda Wallace 73f62d4983 Add API resources for photos, plantings, and seeds; update application configuration
- Introduced `PhotoResource`, `PlantingResource`, and `SeedResource` to manage respective models.
- Updated application configuration to include API base URL.
- Modified production and test environments to set API base URL dynamically.
- Removed outdated JSONAPI resources initializers and patches.
- Refactored routes to use resourceful routing for API endpoints.
- Updated request specs to reflect changes in API responses and relationships.
- Added helper methods for generating related links in request specs.
2026-10-24 18:19:11 +13:00

11 lines
380 B
Ruby

# frozen_string_literal: true
Graphiti.configure do |config|
# The API has always linked to the next page; RemoteApiClient follows links.next.
config.pagination_links = true
# Graphiti loads included relationships in threads outside the test environment. Each thread takes a database
# connection, which is not worth it on a small dyno.
config.concurrency = false
end