Sha256: f43811178f04c8d80ade0b68e742bb66cbaf334fbc126a37374cd9fdbd12c6d9

Contents?: true

Size: 358 Bytes

Versions: 7

Compression:

Stored size: 358 Bytes

Contents

require 'rom/command'

module ROM
  module Commands
    # Update command
    #
    # This command updates all tuples in its relation with new attributes
    #
    # @abstract
    class Update < Command
      # @see AbstractCommand#call
      def call(*args)
        assert_tuple_count
        super
      end
      alias_method :set, :call
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rom-0.6.2 lib/rom/commands/update.rb
rom-0.6.1 lib/rom/commands/update.rb
rom-0.6.0 lib/rom/commands/update.rb
rom-0.6.0.rc1 lib/rom/commands/update.rb
rom-0.6.0.beta3 lib/rom/commands/update.rb
rom-0.6.0.beta2 lib/rom/commands/update.rb
rom-0.6.0.beta1 lib/rom/commands/update.rb