codenoble / cache-crispies

Speedy Rails JSON serialization with built-in caching
MIT License
156 stars 14 forks source link

`collection:` option should not be passed around as an option anywhere #18

Closed adamcrown closed 4 years ago

adamcrown commented 4 years ago

Most options should be shared around as they could be used by any number of potentially deeply nested calls. But using collection: true or collection: false should only apply to the immediate object it's being passed to, and none of its children.

It may also be necessary to add a collection: true/false option to the Base.serialize method.