Sha256: 707be2357fb30ac83eb9cd8f27a1311e303d5d22272601a0f179117246db6bca
Contents?: true
Size: 482 Bytes
Versions: 7
Compression:
Stored size: 482 Bytes
Contents
# encoding: utf-8 module Mongoid module Paranoia module Document extend ActiveSupport::Concern included do # Indicates whether or not the document includes Mongoid::Paranoia. # In Mongoid 3, this method was defined on all Mongoid::Documents. # In Mongoid 4, it is no longer defined, hence we are shimming it here. class_attribute :paranoid end end end end Mongoid::Document.send(:include, Mongoid::Paranoia::Document)
Version data entries
7 entries across 7 versions & 1 rubygems