mirror of
https://github.com/awesome-print/awesome_print
synced 2023-03-27 23:22:34 -04:00
fix
This commit is contained in:
parent
6fc92236ef
commit
d8d50857fc
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue