mongoid / mongoid-grid_fs

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

How to change the collection/namespace? #50

Open ream88 opened 10 years ago

ream88 commented 10 years ago

Sry, maybe I'm stupid, but how to I change the namespace the files are stored in? I need attachments.files instead of fs.files for my app.

hquick81 commented 9 years ago

Did you find out ? I have the same problem. I looked at the source and tried different methods without any success.

rmm5t commented 9 years ago

Does the example in the test suite help?

https://github.com/ahoward/mongoid-grid_fs/blob/4dbecf14dce0a221888e2f8883c6cfce3c481647/test/mongoid-grid_fs_test.rb#L201

On Sunday, February 1, 2015, hjansen notifications@github.com wrote:

Did you find out ? I have the same problem. I looked at the source and tried different methods without any success.

— Reply to this email directly or view it on GitHub https://github.com/ahoward/mongoid-grid_fs/issues/50#issuecomment-72364237 .