Module: Mongoid::Extensions::Nil::Collectionization
- Included in:
- NilClass
- Defined in:
- lib/mongoid/extensions/nil/collectionization.rb
Overview
This module safeguards collection access on anonymous classes.
Instance Method Summary collapse
-
#collectionize ⇒ String
Get the name of a nil collection.
Instance Method Details
#collectionize ⇒ String
Get the name of a nil collection.
17 18 19 |
# File 'lib/mongoid/extensions/nil/collectionization.rb', line 17 def collectionize to_s.collectionize end |