require 'fiona7/builder/obj_builder' #require 'fiona7/write_obj' module Fiona7 module Builder class ObjUpdater < ObjBuilder protected def validate # revert command sends this info. which is silly. @values.delete(:_last_changed) return true end def create_object @obj_id = @values.delete(:_id) @obj = WriteObj.find(@obj_id) @obj.name = @name unless @name.blank? @name = @obj.name @obj_class ||= @obj.obj_class # TODO: move (parent change) end end end end