Skip to content

Commit

Permalink
YARD and more specific exceptions for DB
Browse files Browse the repository at this point in the history
  • Loading branch information
banker committed Jan 11, 2010
1 parent f2de523 commit f9ec4ec
Show file tree
Hide file tree
Showing 4 changed files with 221 additions and 123 deletions.
2 changes: 2 additions & 0 deletions lib/mongo/collection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ def update(selector, document, options={})
# [field name, direction] pairs. Directions should be specified as Mongo::ASCENDING or Mongo::DESCENDING.
#
# @param [Boolean] unique if true, this index will enforce a uniqueness constraint.
#
# @return [String] the name of the index created.
def create_index(field_or_spec, unique=false)
field_h = OrderedHash.new
if field_or_spec.is_a?(String) || field_or_spec.is_a?(Symbol)
Expand Down
Loading

0 comments on commit f9ec4ec

Please sign in to comment.