Sha256: fadfa7347b03923cf2ad6dacea05a869bfb18aefe41d5d0c3b1dc010bad8b843
Contents?: true
Size: 823 Bytes
Versions: 12
Compression:
Stored size: 823 Bytes
Contents
require 'active_support/core_ext/class/attribute_accessors' require 'active_support/core_ext/hash/reverse_merge' require 'active_support/core_ext/hash/deep_merge' require 'active_support/core_ext/string/inflections' module MongoModel class Document < EmbeddedDocument def ==(other) self.class == other.class && id == other.id end include DocumentExtensions::Persistence include DocumentExtensions::OptimisticLocking include DocumentExtensions::CollectionModifiers extend DocumentExtensions::DynamicFinders include DocumentExtensions::Indexes include DocumentExtensions::Scopes include DocumentExtensions::Validations include DocumentExtensions::Callbacks self.abstract_class = true cattr_accessor :per_page self.per_page = 20 end end
Version data entries
12 entries across 12 versions & 1 rubygems