Class: ActiveRecord::Reflection::AssociationReflection

Inherits:
MacroReflection
  • Object
show all
Defined in:
lib/activerecord-spatial/associations/base.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#association_class_with_spatialObject



82
83
84
85
86
87
88
# File 'lib/activerecord-spatial/associations/base.rb', line 82

def association_class_with_spatial
  if self.options[:relationship]
     Associations::SpatialAssociation
  else
    association_class_without_spatial
  end
end