Class: Builder::Spatial

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

Overview

:nodoc:

Constant Summary collapse

SPATIAL_MACRO =
:has_many
VALID_SPATIAL_OPTIONS =
[
  :geom, :foreign_geom, :relationship, :scope_options
].freeze
INVALID_SPATIAL_OPTIONS =
[
  :through, :source, :source_type, :dependent, :finder_sql, :counter_sql,
  :inverse_of
].freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.valid_options(options) ⇒ Object



20
21
22
# File 'lib/activerecord-spatial/associations/base.rb', line 20

def self.valid_options(options)
  super + VALID_SPATIAL_OPTIONS - INVALID_SPATIAL_OPTIONS
end

Instance Method Details

#macroObject



16
17
18
# File 'lib/activerecord-spatial/associations/base.rb', line 16

def macro
  SPATIAL_MACRO
end