Added alias << for insert in collection
This commit is contained in:
parent
6b06551620
commit
4ccb68b870
@ -35,6 +35,7 @@ module XGen
|
|||||||
objects = objects.first if objects.size == 1 && objects.first.is_a?(Array)
|
objects = objects.first if objects.size == 1 && objects.first.is_a?(Array)
|
||||||
@db.insert_into_db(@name, objects)
|
@db.insert_into_db(@name, objects)
|
||||||
end
|
end
|
||||||
|
alias :<< :insert
|
||||||
|
|
||||||
def remove(selector={})
|
def remove(selector={})
|
||||||
@db.remove_from_db(@name, selector)
|
@db.remove_from_db(@name, selector)
|
||||||
|
Loading…
Reference in New Issue
Block a user