Added alias << for insert in collection

This commit is contained in:
Adrian Madrid 2008-12-05 16:17:52 -07:00
parent 6b06551620
commit 4ccb68b870

View File

@ -35,6 +35,7 @@ module XGen
objects = objects.first if objects.size == 1 && objects.first.is_a?(Array)
@db.insert_into_db(@name, objects)
end
alias :<< :insert
def remove(selector={})
@db.remove_from_db(@name, selector)