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 ee53ba9 commit 1398384Copy full SHA for 1398384
lib/mongoid/extensions.rb
@@ -19,19 +19,6 @@ def as_json(*args)
19
end
20
21
22
-class BSON::Document
23
- # We need to override this as ActiveSupport creates a new Object, instead of a new Hash
24
- # see https://github.com/rails/rails/commit/f1bad130d0c9bd77c94e43b696adca56c46a66aa
25
- def transform_keys
26
- return enum_for(:transform_keys) unless block_given?
27
- result = {}
28
- each_key do |key|
29
- result[yield(key)] = self[key]
30
- end
31
- result
32
33
-end
34
-
35
require "mongoid/extensions/array"
36
require "mongoid/extensions/big_decimal"
37
require "mongoid/extensions/binary"
0 commit comments