lib/fiona7/widget_resolver.rb in infopark_fiona7-0.30.0.2 vs lib/fiona7/widget_resolver.rb in infopark_fiona7-0.70.0.1
- old
+ new
@@ -13,10 +13,10 @@
attr_accessor :value, :klass
attr_writer :id_map, :path_map, :instance_map
def preload
widget_id_to_object_id_map = Hash[
- self.value.map {|link| [link.title, link.destination_object_id] }
+ self.value.map {|link| [link["title"], link["destination"]] }
]
object_id_to_widget_instance_map = Hash[
self.klass.where(obj_id: widget_id_to_object_id_map.values).map {|obj| [obj.id, obj] }
]