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.3.3 lib/mongomodel/concerns/abstract_class.rb
mongomodel-0.3.2 lib/mongomodel/concerns/abstract_class.rb
mongomodel-0.3.1 lib/mongomodel/concerns/abstract_class.rb
mongomodel-0.3.0 lib/mongomodel/concerns/abstract_class.rb
mongomodel-0.2.20 lib/mongomodel/concerns/abstract_class.rb
mongomodel-0.2.19 lib/mongomodel/concerns/abstract_class.rb
mongomodel-0.2.18 lib/mongomodel/concerns/abstract_class.rb
mongomodel-0.2.17 lib/mongomodel/concerns/abstract_class.rb
mongomodel-0.2.16 lib/mongomodel/concerns/abstract_class.rb
mongomodel-0.2.15 lib/mongomodel/concerns/abstract_class.rb
mongomodel-0.2.14 lib/mongomodel/concerns/abstract_class.rb
mongomodel-0.2.13 lib/mongomodel/concerns/abstract_class.rb
mongomodel-0.2.12 lib/mongomodel/concerns/abstract_class.rb
mongomodel-0.2.11 lib/mongomodel/concerns/abstract_class.rb
mongomodel-0.2.10 lib/mongomodel/concerns/abstract_class.rb
mongomodel-0.2.9 lib/mongomodel/concerns/abstract_class.rb
mongomodel-0.2.8 lib/mongomodel/concerns/abstract_class.rb
mongomodel-0.2.7 lib/mongomodel/concerns/abstract_class.rb
mongomodel-0.2.6 lib/mongomodel/concerns/abstract_class.rb
mongomodel-0.2.5 lib/mongomodel/concerns/abstract_class.rb