Use 'collection' rather than 'resource_class.all' so the csv export for ...

...nested resources matches the dataset presented on index view.


Can you have a look at this please @rahult and see if there are any obvious issues with this?