Sha256: ed448bb1586da98f506b7bdaa289cd255fadf17e741f3d1e471d0601c9784d3f

Contents?: true

Size: 417 Bytes

Versions: 8

Compression:

Stored size: 417 Bytes

Contents

require 'rom/command'
require 'rom/support/deprecations'

module ROM
  module Commands
    # Update command
    #
    # This command updates all tuples in its relation with new attributes
    #
    # @abstract
    class Update < Command
      extend Deprecations

      # @see AbstractCommand#call
      def call(*args)
        assert_tuple_count
        super
      end
      deprecate :set, :call
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rom-0.9.1 lib/rom/commands/update.rb
rom-0.9.0 lib/rom/commands/update.rb
rom-0.9.0.rc1 lib/rom/commands/update.rb
rom-0.9.0.beta1 lib/rom/commands/update.rb
rom-0.8.1 lib/rom/commands/update.rb
rom-0.8.0 lib/rom/commands/update.rb
rom-0.7.1 lib/rom/commands/update.rb
rom-0.7.0 lib/rom/commands/update.rb