Sha256: 52a543b715dba5c2f70a90a21a1c419f4507854b4d0686fb6153ffc0b894fac7
Contents?: true
Size: 676 Bytes
Versions: 16
Compression:
Stored size: 676 Bytes
Contents
module Scrivito class ObjUpdateParamsParser < Struct.new(:obj, :host, :port) include ObjParamsParser private def convert_params(params) convert_field_params(obj.obj_class, params) convert_widget_pool_params(params) end def convert_widget_pool_params(params) return unless params['_widget_pool'] widget_pool = {} params['_widget_pool'].each_pair do |widget_id, widget_params| if widget_params.present? widget = obj.widgets[widget_id] widget_pool[widget] = convert_field_params(widget.obj_class, widget_params) end end params['_widget_pool'] = widget_pool end end end
Version data entries
16 entries across 16 versions & 1 rubygems