Hi all,
I'm reading through what happens when someone attempts to export a selection of records.
Just like in the list action, the get_collection method is called to retrieve the collection.
Now the first line of the method goes
associations = model_config.list.fields.select { |f| f.type == :belongs_to_association && !f.polymorphic? }.collect { |f| f.association.name }
in order to retrieve the associations to include in the query. Now this is all fine but notice how the list model configuration is used : model_config.list.
In the case of an export action, this should be accessing the export settings.
In effet, I do see in the logs association being queried for that were configured in the list action but not in the export action.
Is this a feature or a bug?
Hi all,
I'm reading through what happens when someone attempts to export a selection of records.
Just like in the list action, the
get_collectionmethod is called to retrieve the collection.Now the first line of the method goes
in order to retrieve the associations to include in the query. Now this is all fine but notice how the
listmodel configuration is used :model_config.list.In the case of an export action, this should be accessing the
exportsettings.In effet, I do see in the logs association being queried for that were configured in the
listaction but not in theexportaction.Is this a feature or a bug?