# File lib/mongo_mapper/plugins/stats.rb, line 9 def stats stats = collection.stats Struct.new(*stats.keys.collect { |key| key.underscore.to_sym }).new(*stats.values) rescue nil end