Validation of batch inserts in mongo

Performing a batch insert like

@state.collection.insert batch

bypasses Activerecord and so doesn’t allow for validation functions and
other callbacks to be run. Is there a workaround to this? I found a
gem for doing this in MySQL/Postgres

http://www.continuousthinking.com/tags/arext

But I’m surprised there doesn’t seem to be a gem or even much discussion
for the issue in Mongo since it seems like a signficant problem for any
application dealing with alot of data.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs