-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested attributes support #4
Comments
I've added tests for it, confirming that bug exists, but only for embedded models: |
OK, I've figured out that mongoid does not run callbacks for embedded models, and even So, if that's the only way to make it work - I believe such workaround should be described in README file. Waiting for your review, @janko-m |
OK, this is actually bug in |
Hey @janko-m,
I've just found another bug I believe, because I was trying to do exact same thing as you described here:
https://github.com/shrinerb/shrine/blob/master/doc/multiple_files.md
But with Mongoid (and currently supported embedded models on my branch), and well, it just skips all the Shrine uploaders stuff (kind of). It just saves
file_data
(if file attribute is just calledfile
), but there's no uploading or validations. (I must use Mongoid 6.4 though).The text was updated successfully, but these errors were encountered: