remove deprecated methods DB#admin and DB#db_command
This commit is contained in:
parent
a133fdd4e8
commit
c82b61ffc9
|
@ -206,12 +206,6 @@ module Mongo
|
||||||
raise MongoDBError, "Error creating collection: #{doc.inspect}"
|
raise MongoDBError, "Error creating collection: #{doc.inspect}"
|
||||||
end
|
end
|
||||||
|
|
||||||
# @deprecated all the admin methods are now included in the DB class.
|
|
||||||
def admin
|
|
||||||
warn "DB#admin has been DEPRECATED. All the admin functions are now available in the DB class itself."
|
|
||||||
Admin.new(self)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Get a collection by name.
|
# Get a collection by name.
|
||||||
#
|
#
|
||||||
# @param [String] name the collection name.
|
# @param [String] name the collection name.
|
||||||
|
@ -440,12 +434,6 @@ module Mongo
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# @deprecated please use DB#command instead.
|
|
||||||
def db_command(*args)
|
|
||||||
warn "DB#db_command has been DEPRECATED. Please use DB#command instead."
|
|
||||||
command(args[0], args[1])
|
|
||||||
end
|
|
||||||
|
|
||||||
# A shortcut returning db plus dot plus collection name.
|
# A shortcut returning db plus dot plus collection name.
|
||||||
#
|
#
|
||||||
# @param [String] collection_name
|
# @param [String] collection_name
|
||||||
|
|
Loading…
Reference in New Issue