jsonapi-suite / jsonapi_compliable

MIT License
20 stars 35 forks source link

Accomodate the "Sunspot Pattern" #123

Closed richmolj closed 5 years ago

richmolj commented 5 years ago

...which is to query using a client, but return ActiveRecord objects. This would trigger a scenario where the PORO association code would fire, which has adverse side-effects with ActiveRecord.

Instead, we do a one-off check to ensure adapter developers don't fall into this trap. The expectation is this scenario is ActiveRecord-specific, so we're OK with an explicit one-off check.

richmolj commented 5 years ago

@wadetandy