won't blow up if no association found
seamusabshere opened this issue · 1 comments
seamusabshere commented
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
activerecord association functionality has been removed