mongoid / mongoid-grid_fs

A pure Mongoid/Moped implementation of the MongoDB GridFS specification.
Other
83 stars 50 forks source link

Mongoid 6.0 Support #61

Closed laCour closed 8 years ago

laCour commented 8 years ago

This corrects a small association issue and hushes noisy log output for tests.

Previously chunks were being saved on a non-persisted file model in #put (this shouldn't have been working). With mongoid 6, stricter validation prevents chunks from being saved without a persisted file. Now the file model is persisted before chunks are saved. This removes the old chunks array since we can simply destroy the file model and its dependents upon rescue.

Ref #60

krazedkrish commented 8 years ago

eagerly waiting for this pull request to be accepted. :smiley_cat:

rmm5t commented 8 years ago

Great work. Thanks for this.