-
Notifications
You must be signed in to change notification settings - Fork 179
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
Deprecation warning when used with Rails 6 #227
Comments
I belive this is fixed by #231. |
@jonekdahl There is again the issue when using Rails 6.0.2.2 and Ruby 2.7.1
I would be glad to take care on that and fix it. I've found the possible code here:
It seems to be correct, but the depreaction is present. I've checked the Mongoid repo and there is no Compatibility::Version module. Could it be deprecated? What are your thoughts on that? |
Mongoid::Compatibility is https://github.com/mongoid/mongoid-compatibility, not an official MongoDB/mongoid gem. |
I've got the same warning with ruby 2.7.1 rails 6.03 and mongoid 7.1.1, did you manage to solve this ? |
I'm upgrading my app from Rails 5 to Rails 6.0.3, using Ruby 2.6.5 and mongoid-rspec 4.0.1 and I'm getting the same warning message. |
Upgrading my app to Rails 6.0.3 and getting the same warning. |
Released 4.1.0 that has this resolved. |
DEPRECATION WARNING: Ruby 2.5+ (required by Rails 6) provides Hash#transform_values natively, so requiring active_support/core_ext/hash/transform_values is no longer necessary. Requiring it will raise LoadError in Rails 6.1.
The text was updated successfully, but these errors were encountered: