diff --git a/lib/awesome_print/ext/sequel.rb b/lib/awesome_print/ext/sequel.rb index 9b50f1b..5ee5acf 100644 --- a/lib/awesome_print/ext/sequel.rb +++ b/lib/awesome_print/ext/sequel.rb @@ -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