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:40:52 +01:00
parent 6fc92236ef
commit d8d50857fc

View file

@ -47,7 +47,8 @@ module AwesomePrint
# Format Sequel Model class.
#------------------------------------------------------------------------------
def awesome_sequel_model_class
"class #{object} < #{object.superclass} " << awesome_hash(object.db_schema)
data = object.db_schema.inject({}) {|h, (name,data)| h.merge(name => data[:db_type])}
"class #{object} < #{object.superclass} " << awesome_hash(data)
end
end