Skip to content

Commit

Permalink
Merge pull request #158 from orbanbotond/develop
Browse files Browse the repository at this point in the history
Fix for #157
  • Loading branch information
ctran committed Feb 26, 2014
2 parents 54a99db + 4f5cc51 commit 8a4efb1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 1 addition & 3 deletions 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|
Expand Down
5 changes: 5 additions & 0 deletions lib/annotate/annotate_models.rb
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

0 comments on commit 8a4efb1

Please sign in to comment.