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