Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/mongo/db.rb
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,8 @@ def dereference(dbref)
# @param [Integer, Hash] args any additional argument to be passed to the +code+ expression when
# it's run on the server.
#
# @note the eval command is deprecated in MongoDB 3.0 and will be removed in a future server version.
#
# @return [String] the return value of the function.
def eval(code, *args)
unless code.is_a?(BSON::Code)
Expand Down