Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions annotate.gemspec
Original file line number Diff line number Diff line change
@@ -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|
Expand Down
5 changes: 5 additions & 0 deletions lib/annotate/annotate_models.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down