diff --git a/annotate.gemspec b/annotate.gemspec index 11f137b89..8b5a637b7 100644 --- a/annotate.gemspec +++ b/annotate.gemspec @@ -1,6 +1,4 @@ -# This file is auto-generated! -# DO NOT EDIT THIS FILE DIRECTLY! -# Instead, edit the Rakefile and run 'rake gems:gemspec'.# -*- encoding: utf-8 -*- +# -*- encoding: utf-8 -*- # stub: annotate 2.6.1 ruby lib Gem::Specification.new do |s| diff --git a/lib/annotate/annotate_models.rb b/lib/annotate/annotate_models.rb index ebc0f9d0f..3e29f6a39 100644 --- a/lib/annotate/annotate_models.rb +++ b/lib/annotate/annotate_models.rb @@ -131,6 +131,11 @@ def get_schema_info(klass, header, options = {}) end end + # Check out if we got an array column + if col.respond_to?(:array) && col.array + attrs << "is an Array" + end + # Check out if we got a geometric column # and print the type and SRID if col.respond_to?(:geometry_type)