mongoid-grid_fs icon indicating copy to clipboard operation
mongoid-grid_fs copied to clipboard

How to change the collection/namespace?

Open ream88 opened this issue 10 years ago • 2 comments

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.

ream88 avatar Sep 27 '14 21:09 ream88

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

hquick81 avatar Feb 01 '15 13:02 hquick81

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 [email protected] 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 .

rmm5t avatar Feb 01 '15 14:02 rmm5t