Sha256: 8e8882df5a969b3d68f35a88fff0a2a31554115cb42d4aaae48844d2be005053

Contents?: true

Size: 316 Bytes

Versions: 1

Compression:

Stored size: 316 Bytes

Contents

module MongoMapper
  module Plugins
    module Descendants
      extend ActiveSupport::Concern
      module ClassMethods
        def inherited(descendant)
          (@descendants ||= []) << descendant
          super
        end

        def descendants
          @descendants
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongo_mapper-rails3-0.7.0.1 lib/mongo_mapper/plugins/descendants.rb