epfl-exts / rails-gdpr-export

A gem for exporting personal data in the context of GDPR.
MIT License
19 stars 1 forks source link

Conflict with ActiveStorage #1

Closed scarroll32 closed 6 years ago

scarroll32 commented 6 years ago

I had some trouble with ActiveStorage and the GDPR export gem, and in fact logged it with the Rails core team. https://github.com/rails/rails/issues/32933

They finally replied saying we should not use models in initialisers

There are two problem on loading Active Record models in initializers, one of them is that it will mess with the code reload, those models may not be able to be reloaded anymore.

In the end I followed this gem's code and modified the approach for crowdAI

grischoun commented 6 years ago

Thanks for the update, Sean. Nice solution you have! I will update this gem's README with regard to the initialiser issue.