Sha256: e597e808f2a733b713bbd4aec2f24e8f1fb95a987a67ea30f4f7fb5e512e86ea

Contents?: true

Size: 973 Bytes

Versions: 10

Compression:

Stored size: 973 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,
        :stats,
        :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

10 entries across 10 versions & 2 rubygems

Version Path
mongoid-2.0.0.rc.7 lib/mongoid/collections/operations.rb
stonegao-mongoid-2.0.0.rc.6 lib/mongoid/collections/operations.rb
mongoid-2.0.0.rc.6 lib/mongoid/collections/operations.rb
mongoid-2.0.0.rc.5 lib/mongoid/collections/operations.rb
mongoid-2.0.0.rc.4 lib/mongoid/collections/operations.rb
mongoid-2.0.0.rc.3 lib/mongoid/collections/operations.rb
mongoid-2.0.0.rc.2 lib/mongoid/collections/operations.rb
mongoid-2.0.0.rc.1 lib/mongoid/collections/operations.rb
mongoid-2.0.0.beta.20 lib/mongoid/collections/operations.rb
mongoid-2.0.0.beta.19 lib/mongoid/collections/operations.rb