Comment about << alias
This commit is contained in:
parent
0413e9b159
commit
cecbebb1e9
@ -50,7 +50,7 @@ module XGen
|
||||
@db.query(@name, Query.new(selector, fields, offset, limit, sort))
|
||||
end
|
||||
|
||||
# Insert +objects+, which are hashes.
|
||||
# Insert +objects+, which are hashes. "<<" is aliased to this method.
|
||||
def insert(*objects)
|
||||
objects = objects.first if objects.size == 1 && objects.first.is_a?(Array)
|
||||
res = @db.insert_into_db(@name, objects)
|
||||
|
Loading…
Reference in New Issue
Block a user