Module: Document::ClassMethods

Defined in:
lib/pluck_all/models/mongoid_extension.rb

Instance Method Summary collapse

Instance Method Details

#pluck_all(*fields) ⇒ Object



9
10
11
# File 'lib/pluck_all/models/mongoid_extension.rb', line 9

def pluck_all(*fields)
  where.pluck_all(*fields)
end

#pluck_array(*fields) ⇒ Object



5
6
7
# File 'lib/pluck_all/models/mongoid_extension.rb', line 5

def pluck_array(*fields)
  where.pluck_array(*fields)
end