Sha256: 26b6f9c88efd17c69fbc84cfa733e65460f94e5eb1eeb7434c4965fd5c40c64c

Contents?: true

Size: 408 Bytes

Versions: 24

Compression:

Stored size: 408 Bytes

Contents

# encoding: utf-8
module Mongoid
  module Extensions
    module NilClass

      # Get the name of a nil collection.
      #
      # @example Get the nil name.
      #   nil.collectionize
      #
      # @return [ String ] A blank string.
      #
      # @since 1.0.0
      def collectionize
        to_s.collectionize
      end
    end
  end
end

::NilClass.__send__(:include, Mongoid::Extensions::NilClass)

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
mongoid-3.0.23 lib/mongoid/extensions/nil_class.rb
mongoid-3.0.22 lib/mongoid/extensions/nil_class.rb
mongoid-3.0.21 lib/mongoid/extensions/nil_class.rb
mongoid-3.0.20 lib/mongoid/extensions/nil_class.rb
mongoid-3.0.19 lib/mongoid/extensions/nil_class.rb
mongoid-3.0.18 lib/mongoid/extensions/nil_class.rb
mongoid-3.0.17 lib/mongoid/extensions/nil_class.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/mongoid-3.0.16/lib/mongoid/extensions/nil_class.rb
mongoid-3.0.16 lib/mongoid/extensions/nil_class.rb
mongoid-3.0.15 lib/mongoid/extensions/nil_class.rb
mongoid-3.0.14 lib/mongoid/extensions/nil_class.rb
mongoid-3.0.13 lib/mongoid/extensions/nil_class.rb
mongoid-3.0.12 lib/mongoid/extensions/nil_class.rb
mongoid-3.0.11 lib/mongoid/extensions/nil_class.rb
mongoid-3.0.10 lib/mongoid/extensions/nil_class.rb
mongoid-3.0.9 lib/mongoid/extensions/nil_class.rb
mongoid-3.0.6 lib/mongoid/extensions/nil_class.rb
mongoid-3.0.5 lib/mongoid/extensions/nil_class.rb
mongoid-3.0.4 lib/mongoid/extensions/nil_class.rb
mongoid-3.0.3 lib/mongoid/extensions/nil_class.rb