Sha256: d945adaa7224234f6d3a0e90a4338646447fcfed43d7c05b2d229af901d06f95

Contents?: true

Size: 427 Bytes

Versions: 6

Compression:

Stored size: 427 Bytes

Contents

module DataMapper
  module Model

    ##
    # increment or decrement attributes on all objects in a resource
    #
    # @example [Usage]
    #   * People.adjust(:salary => +1000)
    #   * Children.adjust(:allowance => -100)
    #
    # @param attributes <Hash> A hash of attributes to adjust, and their adjustment
    # @public
    def adjust!(attributes,reload=false)
      all.adjust!(attributes,reload)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dm-adjust-0.9.4 lib/dm-adjust/model.rb
dm-adjust-0.9.5 lib/dm-adjust/model.rb
dm-adjust-0.9.2 lib/dm-adjust/model.rb
dm-adjust-0.9.3 lib/dm-adjust/model.rb
dm-adjust-0.9.6 lib/dm-adjust/model.rb
dm-adjust-0.9.7 lib/dm-adjust/model.rb