Sha256: 4b3adc9b33c77794c6271028717ff2a06e9afc868b3cf6ced0378752ba1d0675

Contents?: true

Size: 957 Bytes

Versions: 37

Compression:

Stored size: 957 Bytes

Contents

# encoding: utf-8
module Mongoid #:nodoc:
  module Collections #:nodoc:
    module Operations #:nodoc:
      # Constant definining all the read operations available for a
      # Mongo:Collection. This is used in delegation.
      READ = [
        :[],
        :db,
        :count,
        :distinct,
        :find,
        :find_one,
        :group,
        :index_information,
        :map_reduce,
        :mapreduce,
        :options
      ]

      # Constant definining all the write operations available for a
      # Mongo:Collection. This is used in delegation.
      WRITE = [
        :<<,
        :create_index,
        :drop,
        :drop_index,
        :drop_indexes,
        :insert,
        :remove,
        :rename,
        :save,
        :update
      ]

      # Convenience constant for getting back all collection operations.
      ALL = (READ + WRITE)
      PROXIED = ALL - [ :find, :find_one, :map_reduce, :mapreduce ]
    end
  end
end

Version data entries

37 entries across 37 versions & 7 rubygems

Version Path
mongoid-1.9.5 lib/mongoid/collections/operations.rb
mongoid-with-auth-1.9.4 lib/mongoid/collections/operations.rb
mongoid-rails2-1.9.4 lib/mongoid/collections/operations.rb
mongoid-rails2-1.9.3 lib/mongoid/collections/operations.rb
mongoid-1.9.2 lib/mongoid/collections/operations.rb
sskirby-mongoid-1.9.1 lib/mongoid/collections/operations.rb
mongoid-2.0.0.beta.18 lib/mongoid/collections/operations.rb
mongoid-2.0.0.beta.17 lib/mongoid/collections/operations.rb
mongoid-2.0.0.beta.16 lib/mongoid/collections/operations.rb
mongoid-2.0.0.beta.15 lib/mongoid/collections/operations.rb
mongoid-2.0.0.beta.14 lib/mongoid/collections/operations.rb
mongoid-2.0.0.beta.13 lib/mongoid/collections/operations.rb
mongoid-2.0.0.beta.11 lib/mongoid/collections/operations.rb
mongoid-2.0.0.beta.10 lib/mongoid/collections/operations.rb
mongoid-2.0.0.beta.7 lib/mongoid/collections/operations.rb
mongoid-2.0.0.beta.8 lib/mongoid/collections/operations.rb
mongoid-2.0.0.beta.9 lib/mongoid/collections/operations.rb
mongoid-2.0.0.beta.12 lib/mongoid/collections/operations.rb
mongoid-locomotive-2.0.0.beta9 lib/mongoid/collections/operations.rb
mongoid-1.9.1 lib/mongoid/collections/operations.rb