1
0
Fork 0
mirror of https://github.com/awesome-print/awesome_print synced 2023-03-27 23:22:34 -04:00
This commit is contained in:
Jonathan Davies 2013-07-05 11:44:22 +01:00
parent d8d50857fc
commit e27e025509

View file

@ -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