Comment about << alias

This commit is contained in:
Jim Menard 2009-01-07 09:45:56 -05:00
parent 0413e9b159
commit cecbebb1e9
1 changed files with 1 additions and 1 deletions

View File

@ -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)