Sha256: f242b2ad781e7845372949bfdf4b39e493fb51bed0ebf2d914915d3b27a8cc8c

Contents?: true

Size: 311 Bytes

Versions: 31

Compression:

Stored size: 311 Bytes

Contents

module MongoModel
  module AbstractClass
    extend ActiveSupport::Concern
    
    def inherited(subclass)
      subclass.abstract_class = false
    end
    
    module ClassMethods
      attr_accessor :abstract_class
      
      def abstract_class?
        abstract_class == true
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
mongomodel-0.2.4 lib/mongomodel/concerns/abstract_class.rb
mongomodel-0.2.3 lib/mongomodel/concerns/abstract_class.rb
mongomodel-0.2.2 lib/mongomodel/concerns/abstract_class.rb
mongomodel-0.2.1 lib/mongomodel/concerns/abstract_class.rb
mongomodel-0.2.0 lib/mongomodel/concerns/abstract_class.rb
mongomodel-0.1.6 lib/mongomodel/concerns/abstract_class.rb
mongomodel-0.1.5 lib/mongomodel/concerns/abstract_class.rb
mongomodel-0.1.4 lib/mongomodel/concerns/abstract_class.rb
mongomodel-0.1.3 lib/mongomodel/concerns/abstract_class.rb
mongomodel-0.1.1 lib/mongomodel/concerns/abstract_class.rb
mongomodel-0.1 lib/mongomodel/concerns/abstract_class.rb