Sha256: cd4831c7fbf20ca5dec3ac345a77ae8adfc070b996caece4c98351c230cf8a41
Contents?: true
Size: 351 Bytes
Versions: 3
Compression:
Stored size: 351 Bytes
Contents
# encoding: UTF-8 module MongoMapper module Plugins module Stats extend ActiveSupport::Concern module ClassMethods def stats stats = collection.stats Struct.new(*stats.keys.collect { |key| key.underscore.to_sym }).new(*stats.values) rescue nil end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mongo_mapper-0.14.0 | lib/mongo_mapper/plugins/stats.rb |
mongo_mapper-0.14.0.rc1 | lib/mongo_mapper/plugins/stats.rb |
mongo_mapper-0.13.1 | lib/mongo_mapper/plugins/stats.rb |