mirror of
https://github.com/awesome-print/awesome_print
synced 2023-03-27 23:22:34 -04:00
Sequel: avoid shadowing outer variable
This commit is contained in:
parent
903eff2d63
commit
d3c41c9c0f
1 changed files with 2 additions and 2 deletions
|
@ -45,8 +45,8 @@ module AwesomePrint
|
|||
# Format 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)
|
||||
result = object.db_schema.inject({}) { |h, (name, data)| h.merge(name => data[:db_type]) }
|
||||
"class #{object} < #{object.superclass} " << awesome_hash(result)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue