From 0e6816ca8bbb50e8fea086bbf5ecf206360549f8 Mon Sep 17 00:00:00 2001 From: aherlihy Date: Tue, 20 Oct 2015 15:34:39 -0400 Subject: [PATCH] RUBY-1009 - Deprecate eval helpers: - Added documentation to db.eval --- lib/mongo/db.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/mongo/db.rb b/lib/mongo/db.rb index 82f0863e56..0c4e97d595 100644 --- a/lib/mongo/db.rb +++ b/lib/mongo/db.rb @@ -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)