Skip to content
This repository
Browse code

fixes

  • Loading branch information...
commit 107883f8f4d3729e799318afe68cc061b36adf5d 1 parent ced63a8
brough authored

Showing 1 changed file with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. +5 1 lib/putsgis/putsgis.rb
6 lib/putsgis/putsgis.rb
@@ -147,7 +147,11 @@ def gis_query(function,object,options)
147 147 table = self.table_name
148 148 fkey = options[:fkey].to_s
149 149 subquery = options[:subquery]
150   - object_table = object.table_name
  150 + if object.class == Class
  151 + object_table = object.table_name
  152 + else
  153 + object_table = object.class.table_name
  154 + end
151 155 if options[:select] == :all
152 156 select = "*"
153 157 else

0 comments on commit 107883f

Please sign in to comment.
Something went wrong with that request. Please try again.