Sha256: 814fd431a829460098bbe270571def1aaa29f1bde815c901a866516e8082a2e0

Contents?: true

Size: 288 Bytes

Versions: 5

Compression:

Stored size: 288 Bytes

Contents

require "periscope"
require "mongoid"

module Periscope
  module Adapters
    module Mongoid
      include Periscope

      private

      def periscope_default_scope
        scoped
      end
    end
  end
end

Mongoid::Document::ClassMethods.send(:include, Periscope::Adapters::Mongoid)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
periscope-mongoid-2.1.2 lib/periscope/adapters/mongoid.rb
periscope-mongoid-2.1.1 lib/periscope/adapters/mongoid.rb
periscope-mongoid-2.1.0 lib/periscope/adapters/mongoid.rb
periscope-mongoid-2.0.1 lib/periscope/adapters/mongoid.rb
periscope-mongoid-2.0.0 lib/periscope/adapters/mongoid.rb