Skip to content

Commit 7eed360

Browse files
committed
Use to_h, instead of to_hash.
1 parent 8bb0761 commit 7eed360

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/rdf/mongo.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Statement
88
# Creates a BSON representation of the statement.
99
# @return [Hash]
1010
def to_mongo
11-
self.to_hash.inject({}) do |hash, (place_in_statement, entity)|
11+
self.to_h.inject({}) do |hash, (place_in_statement, entity)|
1212
hash.merge(RDF::Mongo::Conversion.to_mongo(entity, place_in_statement))
1313
end
1414
end

0 commit comments

Comments
 (0)