mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-31 11:21:06 -04:00
- 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.
11 lines
380 B
Ruby
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
|