-
Notifications
You must be signed in to change notification settings - Fork 9
Added Tests for revise! and fixed a few errors #1
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
Conversation
Passing without_protected: true is no longer valid. Mongoid now relies on ForbiddenAttributesProtection for this. see: mongoid/mongoid@33bd65d
We don't need to clear persistence options. See mongoid/mongoid@af65a1b
Even if the document has not changed, revise! should create a version
Thanks for fixes @gautamrege! Some tests are failing now, I'll try to figure out why. 😻 |
There are couple of tests (un-related to my commits) that are failing on local..pushed the changes nevertheless 😈 These were the tests when not using default database. am investigating. |
@gautamrege I think it is related to mongoid/mongoid@0a486e0. |
@gautamrege any news? |
Heh! Got stuck with some work - looking into this now. |
Also removed the monkey patch for collection as mongoid now picks up the persistence options properly in the session. Added the with scope when we search for revisions!
@simi This should fix things. Let me know your thoughts. |
@gautamrege sorry. I missed your comment. Looks good! Awesome work @gautamrege. |
Added Tests for revise! and fixed a few errors
cool! |
I added you into contributors list. I'll give you rubygems access once I'll release this if you're interested. |
Awesome - I can surely help in supporting this. |
revise! was failing and there were not test cases for it.. added them
Also a few errors fixed: