lib/cistern/formatter/awesome_print.rb in cistern-2.3.0 vs lib/cistern/formatter/awesome_print.rb in cistern-2.4.0

- old
+ new

@@ -25,10 +25,10 @@ end # Format Cistern::Model #------------------------------------------------------------------------------ def awesome_cistern_model(object) - data = object.attributes.keys.inject({}) { |r, k| r.merge(k => object.send(k)) } + data = object.attributes.keys.sort.each_with_object({}) { |e, a| a[e] = object.public_send(e) } "#{object} " << awesome_hash(data) end # Format Cistern::Model #------------------------------------------------------------------------------