deprecating DB#modify_in_db
This commit is contained in:
parent
141974c012
commit
a41a88d0f2
|
@ -364,8 +364,11 @@ module XGen
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
# Alias for #replace_in_db. Normally called by Collection.modify.
|
# DEPRECATED - use Collection#update instead
|
||||||
alias_method :modify_in_db, :replace_in_db
|
def modify_in_db(collection_name, selector, obj)
|
||||||
|
warn "DB#modify_in_db is deprecated and will be removed. Please use Collection#update instead."
|
||||||
|
replace_in_db(collection_name, selector, obj)
|
||||||
|
end
|
||||||
|
|
||||||
# Update records in +collection_name+ that match +selector+ by
|
# Update records in +collection_name+ that match +selector+ by
|
||||||
# applying +obj+ as an update. If no match, inserts (???). Normally
|
# applying +obj+ as an update. If no match, inserts (???). Normally
|
||||||
|
|
Loading…
Reference in New Issue