Sha256: 83b0796a20f1a0a04003c9648796dc63a7b6e1d15f3392280000334ee7e197ec

Contents?: true

Size: 496 Bytes

Versions: 2

Compression:

Stored size: 496 Bytes

Contents

require 'mongo_mapper/paranoia'

module MongoMapper
  module Plugins
    module Paranoia
      module ActsAsParanoid
        extend ActiveSupport::Concern

        module ClassMethods
          # Includes the MongoMapper::Plugins::Paranoia MongoMapper Plugin
          # @see MongoMapper::Plugins::Paranoia
          def acts_as_paranoid
            self.send(:include, ::MongoMapper::Plugins::Paranoia)
          end
        end

        module InstanceMethods; end

      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mongo_mapper-paranoia-0.0.2 lib/mongo_mapper/paranoia/acts_as_paranoid.rb
mongo_mapper-paranoia-0.0.1 lib/mongo_mapper/paranoia/acts_as_paranoid.rb