Skip to content

Commit 95bcefa

Browse files
committed
Merge pull request #713 from aherlihy/1009-deprecate-eval-helpers
RUBY-1009 - Deprecate eval helpers
2 parents cd27d9c + 0e6816c commit 95bcefa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/mongo/db.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,8 @@ def dereference(dbref)
453453
# @param [Integer, Hash] args any additional argument to be passed to the +code+ expression when
454454
# it's run on the server.
455455
#
456+
# @note the eval command is deprecated in MongoDB 3.0 and will be removed in a future server version.
457+
#
456458
# @return [String] the return value of the function.
457459
def eval(code, *args)
458460
unless code.is_a?(BSON::Code)

0 commit comments

Comments
 (0)