From e27e0255099735b206789a21b3d076ec41c96463 Mon Sep 17 00:00:00 2001 From: Jonathan Davies Date: Fri, 5 Jul 2013 11:44:22 +0100 Subject: [PATCH] fix --- lib/awesome_print/ext/sequel.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/awesome_print/ext/sequel.rb b/lib/awesome_print/ext/sequel.rb index 8ee8b90..b402471 100644 --- a/lib/awesome_print/ext/sequel.rb +++ b/lib/awesome_print/ext/sequel.rb @@ -46,7 +46,7 @@ module AwesomePrint # Format Sequel Model class. #------------------------------------------------------------------------------ - def awesome_sequel_model_class + def awesome_sequel_model_class(object) data = object.db_schema.inject({}) {|h, (name,data)| h.merge(name => data[:db_type])} "class #{object} < #{object.superclass} " << awesome_hash(data) end