lib/cistern/formatter/awesome_print.rb in cistern-0.5.4 vs lib/cistern/formatter/awesome_print.rb in cistern-0.5.6
- old
+ new
@@ -30,10 +30,10 @@
end
# Format Cistern::Model
#------------------------------------------------------------------------------
def awesome_cistern_collection(object)
- "#{object.class.name} " << awesome_hash(attributes: object.attributes, records: object.records)
+ "#{object.class.name} " << awesome_hash(attributes: object.attributes, records: object.to_a)
end
end
AwesomePrint::Formatter.send(:include, AwesomePrint::Cistern)