seamusabshere / data_miner

Download, unpack from a ZIP/TAR/GZ/BZ2 archive, parse, correct, convert units and import Google Spreadsheets, XLS, ODS, XML, CSV, HTML, etc. into your ActiveRecord models. Uses RemoteTable gem internally.
MIT License
302 stars 18 forks source link

won't blow up if no association found #3

Closed seamusabshere closed 14 years ago

seamusabshere commented 15 years ago

currently on associations (attr.associate) and inline associations (attr.store [...] :foreign_key => X), you can say

:create => true (will use find_or_create_by_X) :create => false (will use find_by_X)

you can't say

:create => :raise

which would stop the import if there was a missing association, which might indicate a problem with your data.

seamusabshere commented 14 years ago

activerecord association functionality has been removed