Sha256: 0d462e98c5fccb17f690cc7ce0d0a516e3e1c42474ea44386fc760b26fef0dd6

Contents?: true

Size: 295 Bytes

Versions: 63

Compression:

Stored size: 295 Bytes

Contents

# encoding: UTF-8
module MongoMapper
  module Plugins
    module Descendants
      module ClassMethods
        def inherited(descendant)
          descendants << descendant
          super
        end

        def descendants
          @descendants ||= []
        end
      end
    end
  end
end

Version data entries

63 entries across 63 versions & 9 rubygems

Version Path
mongo_mapper-0.8.0 lib/mongo_mapper/plugins/descendants.rb
pwnash-mongo_mapper-0.7.6 lib/mongo_mapper/plugins/descendants.rb
mongo_mapper_ign-0.7.6 lib/mongo_mapper/plugins/descendants.rb