aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/relations/writes/update.rb
blob: e647218a805568b7521f5483402e5277cd4b3c48 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module Arel
  class Update < Compound
    attributes :relation, :assignments
    deriving :==

    def initialize(relation, assignments)
      @relation, @assignments = relation, assignments
    end

    def call
      engine.update(self)
    end
  end
end