more info

This commit is contained in:
Torsten Ruger
2015-08-09 12:15:22 +03:00
parent 72a2d22215
commit 0926f1f85f
3 changed files with 12 additions and 7 deletions

View File

@ -25,6 +25,7 @@ class RegisterModel < Volt::Model
clazz = object.class.name.split("::").last
#puts "found #{clazz}"
self.fields << "#{clazz}:#{object.internal_object_length}"
self.fields << object.get_layout
object.get_instance_variables.each do |variable|
f = object.get_instance_variable(variable)
self.fields << f