stephskardal / rails_admin_import

Rails Admin Import functionality
http://www.endpoint.com/
MIT License
160 stars 122 forks source link

Adding custom import logic #84

Closed gee-forr closed 7 years ago

gee-forr commented 7 years ago

Hi guys

I would like to use this gem for a project that I'm on, however, the file I'm working with needs data created across approximately 15 different models, from what I can tell, that's not the primary use case for this gem...

I was wondering if it's possible to use the upload and parsing logic, and then plug into the codebase somewhere with a hook and simply add my own import logic (which is already implemented in a rake task). Is there a hook available for this?

Many many thanks :)

monkbroc commented 7 years ago

No, there's no hook for something like this. You're probably better off forking the gem, ripping the insides and adding your own logic.