virtuatable-museum / virtuatable

Utility classes for the virtuatable services
0 stars 0 forks source link

Automatically enhance the associations with a base enhancer #8

Open vincentcourtois opened 4 years ago

vincentcourtois commented 4 years ago

This way we won't have to declare empty enhancers to not break the enhancement chain when going through two or more associations.

vincentcourtois commented 4 years ago

We could additionally use enhancers in the Virtuatable::API::Responses module methods to automatically enhance each and every item returned, even if it's with a Virtuatable::Enhancers::Base. This way we could avoid more empty enhancers