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

Class Method Details

.macroObject



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

def self.macro
  SPATIAL_MACRO
end

.valid_options(options) ⇒ Object



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

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