diff --git a/app/main/controllers/registers_controller.rb b/app/main/controllers/registers_controller.rb index 8510e21..182130d 100644 --- a/app/main/controllers/registers_controller.rb +++ b/app/main/controllers/registers_controller.rb @@ -23,11 +23,6 @@ module Main var.class.name.split("::").last[0,2] end - def variables val - name = val.class.name.split("::").last - ClassesController.variables(name) - end - def content(id) object = Virtual.machine.objects[id] fields = [] @@ -43,17 +38,8 @@ module Main fields end - def variables(attribute) - model_name = attribute.class.name.split("::").last - vars = [] - cl = Virtual.machine.space.get_class_by_name(model_name) - return vars unless cl - layout = cl.object_layout - layout.object_instance_names.each do |name| - vars.push name - end - vars + def is_object?( id ) + Virtual.machine.objects[id] != nil end - end end diff --git a/app/main/views/registers/index.html b/app/main/views/registers/index.html index aa81682..712b8aa 100644 --- a/app/main/views/registers/index.html +++ b/app/main/views/registers/index.html @@ -13,13 +13,33 @@ {{index}}{{marker(attribute)}} {{attribute.object_id}} -