class ViewModel::ActiveRecord::FunctionalUpdate
Public Class Methods
for_type(type)
click to toggle source
# File lib/view_model/active_record/update_data.rb, line 10 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