Sha256: 16a89fd2edd649630156d216247d88e9d3ae7dd3cf5c9ea229523487e4040b68
Contents?: true
Size: 298 Bytes
Versions: 3
Compression:
Stored size: 298 Bytes
Contents
module Mongoid module Report class Collections def self.get(collection_name) Mongoid.session(:default)[collection_name] end def self.name(model) model && model.respond_to?(:collection) ? model.collection.name : model end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mongoid-report-0.2.2 | lib/mongoid/report/collections.rb |
mongoid-report-0.2.1 | lib/mongoid/report/collections.rb |
mongoid-report-0.2.0 | lib/mongoid/report/collections.rb |