Permalink
Browse files

fixes

  • Loading branch information...
1 parent ced63a8 commit 107883f8f4d3729e799318afe68cc061b36adf5d @broughcut committed Apr 6, 2008
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/putsgis/putsgis.rb
@@ -147,7 +147,11 @@ def gis_query(function,object,options)
table = self.table_name
fkey = options[:fkey].to_s
subquery = options[:subquery]
- object_table = object.table_name
+ if object.class == Class
+ object_table = object.table_name
+ else
+ object_table = object.class.table_name
+ end
if options[:select] == :all
select = "*"
else

0 comments on commit 107883f

Please sign in to comment.