-
Notifications
You must be signed in to change notification settings - Fork 130
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
wrong number of arguments #238
Comments
From README, "This gem supports Mongoid 3, 4, 5 on Ruby 1.9.3 or newer and Mongoid 6 and 7 on Ruby 2.2.2+." and Travis CI, https://github.com/mongoid/mongoid-history/blob/master/.travis.yml#L15. However if I am reading your mind correctly you're having issues with Mongoid 7.1, similar to mongoid/mongoid-locker#85. Appreciate a pull request with a fix. |
Good evening, `class Company
end |
Please help. Make a PR that uses Mongoid 7.1, demonstrate the failure, try to fix. |
This is a bug in Mongoid 7.1.0. |
Hello, Okay, thank you. I'm going to try this to see if it solves the problem. Thanks again. |
I am now using version 7.0.6 of Mongoid and I get this error (undefined method `collection_name' for Company:Class) when I update the index page of the controller companies. |
@francelwebdev Help us help you?
|
Hi, I still haven't found a solution to my problem. When I make rails console and instantiate my model with CustomerProforma.new, I get this error: |
please help me solve the problem. |
@francelwebdev Did you do what I suggested in #238 (comment)? |
Sorry, I am a beginner and I do not master that. Here is the project repository. https://github.com/francelwebdev/jmaplus_erp_crm.git |
This project is a safe place for you to try and figure it out @francelwebdev! Here to help. You should definitely be able to do 1-3 above. I'll do my best to look at a fix if you can get those in. |
FYI I have a project that uses Mongoid 7.1.2 and mongoid-history 0.8.2, I don't think I read history in any capacity but at least everything loads and I assume writes. |
Related to mongoid#238
Hi, I've been experiencing the same issue when trying to upgrade my app to Rails 6. I cloned mongoid-history's repository and ran the tests as suggested by @dblock in this comment. I could not reproduce any problems there. Everything worked well and the tests passed. After more investigation, I noticed that in my case this problem only happens in classes that include both class Foo
include Mongoid::Document
include Mongoid::Timestamps
include Mongoid::Locker
include Mongoid::History::Trackable
track_history on: [:all], modifier_field_optional: true
end The including order does not make any difference. However, if you call class Test
include Mongoid::Document
include Mongoid::Timestamps
include Mongoid::History::Trackable
track_history on: [:all], modifier_field_optional: true
include Mongoid::Locker
end A similar workaround is suggested here. Below are the versions of related gems:
Current fix:
|
Hi,
This gem supports Mongoid 7?
The text was updated successfully, but these errors were encountered: