lib/reality/model/model_element.rb in reality-model-1.2.0 vs lib/reality/model/model_element.rb in reality-model-1.3.0
- old
+ new
@@ -128,9 +128,13 @@
code += <<-RUBY
public
+ def to_s
+ "#{self.model_classname}[\#{self.#{self.id_method}}]"
+ end
+
def <=>(other)
self.#{self.id_method} <=> other.#{self.id_method}
end
def options=(options)