We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6407218 commit 784bd9aCopy full SHA for 784bd9a
lib/mongoid/extensions/time_with_zone.rb
@@ -26,9 +26,10 @@ def mongoize
26
end
27
28
# This code is copied from Time class extension in bson-ruby gem. It
29
- # should be removed from here when added to bson-ruby.
30
- # See https://jira.mongodb.org/browse/RUBY-2846.
+ # should be removed from here when the minimum BSON version is 5+.
+ # See https://jira.mongodb.org/browse/MONGOID-5491.
31
def _bson_to_i
32
+ return super if defined?(super)
33
# Workaround for JRuby's #to_i rounding negative timestamps up
34
# rather than down (https://github.com/jruby/jruby/issues/6104)
35
if BSON::Environment.jruby?
0 commit comments