class ViewModel::ActiveRecord::FunctionalUpdate
def self.for_type(type)
def self.for_type(type) case type when Append::NAME return Append when Remove::NAME return Remove when Update::NAME return Update else raise ArgumentError.new("invalid functional update type #{type}") end end