lib/helpers/database_helper.rb in mongo3-0.0.7 vs lib/helpers/database_helper.rb in mongo3-0.0.8
- old
+ new
@@ -6,12 +6,15 @@
return context_for( paths ), paths.last
end
def context_for( paths )
case paths.size
- when 2 : "zone"
- when 3 : "database"
- else "collection"
+ when 2
+ "zone"
+ when 3
+ "database"
+ else
+ "collection"
end
end
end
end
\ No newline at end of file