Class: Specify::Model::Geography

Inherits:
Object
  • Object
show all
Includes:
TreeQueryable
Defined in:
lib/specify/models/geography/geography.rb

Overview

Sequel::Model for geographies (geography trees).

Constant Summary

Constants included from TreeQueryable

TreeQueryable::AMBIGUOUS_MATCH_ERROR

Instance Method Summary collapse

Methods included from TreeQueryable

#rank, #search_tree

Instance Method Details

#before_updateObject



17
18
19
20
21
# File 'lib/specify/models/geography/geography.rb', line 17

def before_update
  self.Version += 1
  self.TimestampModified = Time.now
  super
end