Module: Mongoid::Extensions::Array::Mutators

Included in:
Array
Defined in:
lib/mongoid_adjust.rb

Instance Method Summary collapse

Instance Method Details

#adjust!(attrs = {}) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/mongoid_adjust.rb', line 5

def adjust!(attrs = {})
  attrs.each_pair do |key, value|
    self.each do |doc|
      doc.adjust!(attrs)
    end
  end
  self
end