We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8bb0761 commit 7eed360Copy full SHA for 7eed360
1 file changed
lib/rdf/mongo.rb
@@ -8,7 +8,7 @@ class Statement
8
# Creates a BSON representation of the statement.
9
# @return [Hash]
10
def to_mongo
11
- self.to_hash.inject({}) do |hash, (place_in_statement, entity)|
+ self.to_h.inject({}) do |hash, (place_in_statement, entity)|
12
hash.merge(RDF::Mongo::Conversion.to_mongo(entity, place_in_statement))
13
end
14
0 commit comments