Sha256: b3f742f0e507e69cfd9c01dd4e0305f085cf74c92ab0bce2fa05d5910a7372ce

Contents?: true

Size: 477 Bytes

Versions: 8

Compression:

Stored size: 477 Bytes

Contents

module DataMapper
  module Model

    def adjust(*args)
      all.adjust(*args)
    end

    ##
    # 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
    # @api public
    def adjust!(*args)
      all.adjust!(*args)
    end
  end # Model
end # DataMapper

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dm-adjust-1.2.0 lib/dm-adjust/model.rb
dm-adjust-1.2.0.rc2 lib/dm-adjust/model.rb
dm-adjust-1.2.0.rc1 lib/dm-adjust/model.rb
dm-adjust-1.1.0 lib/dm-adjust/model.rb
dm-adjust-1.1.0.rc3 lib/dm-adjust/model.rb
dm-adjust-1.1.0.rc2 lib/dm-adjust/model.rb
dm-adjust-1.1.0.rc1 lib/dm-adjust/model.rb
dm-adjust-1.0.2 lib/dm-adjust/model.rb